'insufficient_data_actions': {'Type': 'List'},
'description': {'Type': 'String'},
'source': {'Type': 'String'},
+ 'enabled': {'Type': 'Boolean',
+ 'Default': 'true'},
'matching_metadata': {'Type': 'Map'}}
update_allowed_keys = ('Properties',)
update_allowed_properties = ('comparison_operator', 'description',
'evaluation_periods', 'period', 'statistic',
'alarm_actions', 'ok_actions',
- 'insufficient_data_actions', 'threshold')
+ 'insufficient_data_actions', 'threshold',
+ 'enabled')
def _actions_to_urls(self, props):
kwargs = {}
def handle_create(self):
props = self._actions_to_urls(self.parsed_template('Properties'))
props['name'] = self.physical_resource_name()
- props['enabled'] = True
alarm = self.ceilometer().alarms.create(**props)
self.resource_id_set(alarm.alarm_id)
al = copy.deepcopy(temp['Resources']['MEMAlarmHigh']['Properties'])
al['description'] = mox.IgnoreArg()
- al['enabled'] = mox.IgnoreArg()
al['name'] = mox.IgnoreArg()
al['alarm_actions'] = mox.IgnoreArg()
self.m.StubOutWithMock(self.fa.alarms, 'create')
snippet['Properties']['description'] = 'fruity'
snippet['Properties']['evaluation_periods'] = '2'
snippet['Properties']['period'] = '90'
+ snippet['Properties']['enabled'] = 'true'
snippet['Properties']['statistic'] = 'max'
snippet['Properties']['threshold'] = '39'
snippet['Properties']['insufficient_data_actions'] = []