~ubuntu-branches/ubuntu/vivid/ceilometer/vivid

« back to all changes in this revision

Viewing changes to ceilometer/alarm/notifier/__init__.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2014-03-06 14:44:28 UTC
  • mto: (28.1.1 utopic-proposed) (1.2.1)
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: package-import@ubuntu.com-20140306144428-rvphsh4igwyulzf0
Tags: upstream-2014.1~b3
ImportĀ upstreamĀ versionĀ 2014.1~b3

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
    """Base class for alarm notifier plugins."""
26
26
 
27
27
    @abc.abstractmethod
28
 
    def notify(self, action, alarm_id, previous, current, reason):
 
28
    def notify(self, action, alarm_id, previous, current, reason, reason_data):
29
29
        """Notify that an alarm has been triggered.
30
30
 
31
31
        :param action: The action that is being attended, as a parsed URL.
33
33
        :param previous: The previous state of the alarm.
34
34
        :param current: The current state of the alarm.
35
35
        :param reason: The reason the alarm changed its state.
 
36
        :param reason_data: A dict representation of the reason.
36
37
        """