Add repeat_actions to alarm

If a user want to be sure that they don't miss a notification it can set
repeat_actions to true in a alarm.

All actions will be called of each evaluation of the alarm instead of
each change state of the alarm.

Change-Id: Ibed79db99531a702c99a0b3746a76586d927eb06
This commit is contained in:
Mehdi Abaakouk
2013-07-29 19:22:31 +02:00
parent b999458a43
commit 5604b457f3
8 changed files with 151 additions and 18 deletions

View File

@@ -516,7 +516,8 @@ class Connection(base.Connection):
alarm_actions=row.alarm_actions,
insufficient_data_actions=
row.insufficient_data_actions,
matching_metadata=row.matching_metadata)
matching_metadata=row.matching_metadata,
repeat_actions=row.repeat_actions)
@staticmethod
def _alarm_model_to_row(alarm, row=None):