The aodh.storage.models Module

The aodh.storage.models Module

Model classes for use in the storage API.

class aodh.storage.models.Alarm(alarm_id, type, enabled, name, description, timestamp, user_id, project_id, state, state_timestamp, state_reason, ok_actions, alarm_actions, insufficient_data_actions, repeat_actions, rule, time_constraints, severity=None)[source]

Bases: aodh.storage.base.Model

class aodh.storage.models.AlarmChange(event_id, alarm_id, type, detail, user_id, project_id, on_behalf_of, severity=None, timestamp=None)[source]

Bases: aodh.storage.base.Model

Record of an alarm change.

Parameters:
  • event_id – UUID of the change event
  • alarm_id – UUID of the alarm
  • type – The type of change
  • severity – The severity of alarm
  • detail – JSON fragment describing change
  • user_id – the user ID of the initiating identity
  • project_id – the project ID of the initiating identity
  • on_behalf_of – the tenant on behalf of which the change is being made
  • timestamp – the timestamp of the change
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.