The aodh.api.controllers.v2.alarms Module¶
-
class
aodh.api.controllers.v2.alarms.Alarm(rule=None, time_constraints=None, **kwargs)[source]¶ Bases:
aodh.api.controllers.v2.base.BaseRepresentation of an alarm.
Note
combination_rule and threshold_rule are mutually exclusive. The type of the alarm should be set to threshold or combination and the appropriate rule should be filled.
-
class
aodh.api.controllers.v2.alarms.AlarmChange(**kw)[source]¶ Bases:
aodh.api.controllers.v2.base.BaseRepresentation of an event in an alarm’s history.
-
class
aodh.api.controllers.v2.alarms.AlarmController(alarm_id)[source]¶ Bases:
pecan.rest.RestControllerManages operations on a single alarm.
-
history(*args, **kwargs)[source]¶ Assembles the alarm history requested.
Parameters: - q – Filter rules for the changes to be described.
- sort – A list of pairs of sort key and sort dir.
- limit – The maximum number of items to be return.
- marker – The pagination query marker.
-
-
class
aodh.api.controllers.v2.alarms.AlarmTimeConstraint(**kw)[source]¶ Bases:
aodh.api.controllers.v2.base.BaseRepresentation of a time constraint on an alarm.
-
class
aodh.api.controllers.v2.alarms.AlarmsController[source]¶ Bases:
pecan.rest.RestControllerManages operations on the alarms collection.
-
class
aodh.api.controllers.v2.alarms.CronType[source]¶ Bases:
wsme.types.UserTypeA user type that represents a cron format.