177
178
def delete_alarm(self, alarm_id):
181
def get_alarm_changes(self, alarm_id, on_behalf_of,
182
user=None, project=None, type=None,
183
start_timestamp=None, start_timestamp_op=None,
184
end_timestamp=None, end_timestamp_op=None):
185
"""Yields list of AlarmChanges describing alarm history
187
Changes are always sorted in reverse order of occurence, given
188
the importance of currency.
190
Segregation for non-administrative users is done on the basis
191
of the on_behalf_of parameter. This allows such users to have
192
visibility on both the changes initiated by themselves directly
193
(generally creation, rule changes, or deletion) and also on those
194
changes initiated on their behalf by the alarming service (state
195
transitions after alarm thresholds are crossed).
197
:param alarm_id: ID of alarm to return changes for
198
:param on_behalf_of: ID of tenant to scope changes query (None for
199
administrative user, indicating all projects)
200
:param user: Optional ID of user to return changes for
201
:param project: Optional ID of project to return changes for
202
:project type: Optional change type
203
:param start_timestamp: Optional modified timestamp start range
204
:param start_timestamp_op: Optional timestamp start range operation
205
:param end_timestamp: Optional modified timestamp end range
206
:param end_timestamp_op: Optional timestamp end range operation
208
raise NotImplementedError('Alarm history not implemented')
210
def record_alarm_change(self, alarm_change):
211
"""Record alarm change event.
213
raise NotImplementedError('Alarm history not implemented')
215
def record_events(self, events):
218
:param events: a list of model.Event objects.
220
raise NotImplementedError('Events not implemented.')
222
def get_events(self, event_filter):
223
"""Return an iterable of model.Event objects.
225
:param event_filter: EventFilter instance
227
raise NotImplementedError('Events not implemented.')
179
"""Delete a alarm."""