aodh.storage.base
Module¶Base classes for storage engines
aodh.storage.base.
Connection
(conf, url)[source]¶Bases: object
Base class for alarm storage system connections.
clear_expired_alarm_history_data
(alarm_history_ttl)[source]¶Clear expired alarm history data from the backend storage system.
Clearing occurs according to the time-to-live.
Parameters: | alarm_history_ttl – Number of seconds to keep alarm history records for. |
---|
create_alarm
(alarm)[source]¶Create an alarm. Returns the alarm as created.
Parameters: | alarm – The alarm to create. |
---|
get_alarm_changes
(alarm_id, on_behalf_of, user=None, project=None, alarm_type=None, severity=None, start_timestamp=None, start_timestamp_op=None, end_timestamp=None, end_timestamp_op=None, pagination=None)[source]¶Yields list of AlarmChanges describing alarm history
Changes are always sorted in reverse order of occurrence, given the importance of currency.
Segregation for non-administrative users is done on the basis of the on_behalf_of parameter. This allows such users to have visibility on both the changes initiated by themselves directly (generally creation, rule changes, or deletion) and also on those changes initiated on their behalf by the alarming service (state transitions after alarm thresholds are crossed).
Parameters: |
|
---|
get_alarms
(name=None, user=None, state=None, meter=None, project=None, enabled=None, alarm_id=None, alarm_type=None, severity=None, exclude=None, pagination=None)[source]¶Yields a lists of alarms that match filters.
Parameters: |
|
---|
get_storage_capabilities
()[source]¶Return a dictionary representing the performance capabilities.
This is needed to evaluate the performance of each driver.
query_alarm_history
(filter_expr=None, orderby=None, limit=None)[source]¶Return an iterable of model.AlarmChange objects.
Parameters: |
|
---|
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.