Bases: object
Delete alarms from memory and database
parameter example:
alarmkey: f459c0e0-f927-481f-9158-deb8abe102a2 alarm: OrderedDict([(‘actions_enabled’, False),
(‘alarm_actions’, u’[]’), (‘alarm_arn’, u’arn:spcs:synaps:IaaS:alarm:TEST_uc 54cub78c_02’), (‘alarm_configuration_updated_timestamp’, datetime. datetime(2012, 8, 25, 10, 51, 38, 469000)), (‘alarm_description’, u’‘), (‘alarm_name’, u’TEST_uc54cub78c_02’), (‘comparison_operator’, u’LessThanThreshold’), (‘dimensions’, u’{“instance_name”: “test instance”} ‘), (‘evaluation_periods’, 2), (‘insufficient_data_actions’, u’[]’), (‘metric_key’, UUID(‘96f19ec9-673b-4237-ae66-1bfde5 26595c’)), (‘metric_name’, u’test_metric’), (‘namespace’, u’SPCS/SYNAPSTEST’), (‘ok_actions’, u’[]’), (‘period’, 300), (‘project_id’, u’IaaS’), (‘state_reason’, u’Threshold Crossed: 2 datapoints were not less than the threshold(2.000000). The most recent datapoints: [55.25, 55.25].’), (‘state_reason_data’, u’{“startDate”: “2012-08-25T 10:30:00.000000”, “period”: 300, “threshold”: 2.0, “version”: “1.0”, “statistic”: “Average”, “recentD atapoints”: [55.25, 55.25], “queryDate”: “2012-08- 25T10:32:24.671991”}’), (‘state_updated_timestamp’, datetime.datetime(2012,
8, 25, 11, 39, 49, 657449)),(‘state_value’, ‘OK’), (‘statistic’, u’Average’), (‘threshold’, 2.0), (‘unit’, u’Percent’), (‘reason’, u’Threshold Crossed: 3 datapoints were not less than the threshold(2.000000). The most recent datapoints: [75.0, 80.0, 67.625].’), (‘reason_data’, ‘{“startDate”: “2012-08-25T11:37:00 .000000”, “period”: 300, “threshold”: 2.0, “version”: “1.0”, “statistic”: “Average”, “recentDatapoints”: [75.0, 80.0, 67.625], “queryDate”: “2012-08-25T11:39:49.657449”}’) ])
less than the threshold(2.000000). The most recent datapoints: [75.0, 80.0, 67.625].’,
‘stateValue’: ‘OK’, ‘stateReasonData’: {‘startDate’: ‘2012-08-25T11:37:00’, ‘period’: 300, ‘threshold’: 2.0, ‘version’: ‘1.0’, ‘statistic’: u’Average’, ‘recentDatapoints’: [75.0, 80.0, 67.625], ‘queryDate’: ‘2012-08-25T11:39:49.657449’}}
unknown.’,
‘stateReasonData’: {u’startDate’: u‘2012-08-25T11:37:00.000000’, u’period’: 300, u’recentDatapoints’: [55.25], u’version’: u‘1.0’, u’statistic’: u’Average’, u’threshold’: 2.0, u’queryDate’: u‘2012-08-25T11:39:26.261056’}, ‘stateValue’: ‘INSUFFICIENT_DATA’}
Bases: synaps.cep.storm.BasicBolt
Put metric data into both memory and database