The aodh.notifier.trust Module

Rest alarm notifier with trusted authentication.

class aodh.notifier.trust.TrustAlarmNotifierMixin[source]

Bases: object

Mixin class to add Keystone trust support to an AlarmNotifier.

Provides a notify() method that interprets the trust ID and then calls the parent class’s notify(), passing the necessary authentication data in the headers.

notify(action, alarm_id, alarm_name, severity, previous, current, reason, reason_data)[source]
class aodh.notifier.trust.TrustRestAlarmNotifier(conf)[source]

Bases: aodh.notifier.trust.TrustAlarmNotifierMixin, aodh.notifier.rest.RestAlarmNotifier

Notifier supporting keystone trust authentication.

This alarm notifier is intended to be used to call an endpoint using keystone authentication. It uses the aodh service user to authenticate using the trust ID provided.

The URL must be in the form trust+http://trust-id@host/action.

Previous topic

The aodh.notifier.test Module

Next topic

The aodh.notifier.zaqar Module

Project Source

This Page