add tag (<DescribeAlarmsResult>) to describe_alarms_template. Because it is miss and it can't work with boto3
This commit is contained in:
parent
63296049f1
commit
d8ed18aaac
@ -95,52 +95,54 @@ PUT_METRIC_ALARM_TEMPLATE = """<PutMetricAlarmResponse xmlns="http://monitoring.
|
|||||||
</PutMetricAlarmResponse>"""
|
</PutMetricAlarmResponse>"""
|
||||||
|
|
||||||
DESCRIBE_ALARMS_TEMPLATE = """<DescribeAlarmsResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">
|
DESCRIBE_ALARMS_TEMPLATE = """<DescribeAlarmsResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">
|
||||||
<MetricAlarms>
|
<DescribeAlarmsResult>
|
||||||
{% for alarm in alarms %}
|
<MetricAlarms>
|
||||||
<member>
|
{% for alarm in alarms %}
|
||||||
<ActionsEnabled>{{ alarm.actions_enabled }}</ActionsEnabled>
|
<member>
|
||||||
<AlarmActions>
|
<ActionsEnabled>{{ alarm.actions_enabled }}</ActionsEnabled>
|
||||||
{% for action in alarm.alarm_actions %}
|
<AlarmActions>
|
||||||
<member>{{ action }}</member>
|
{% for action in alarm.alarm_actions %}
|
||||||
{% endfor %}
|
<member>{{ action }}</member>
|
||||||
</AlarmActions>
|
{% endfor %}
|
||||||
<AlarmArn>{{ alarm.arn }}</AlarmArn>
|
</AlarmActions>
|
||||||
<AlarmConfigurationUpdatedTimestamp>{{ alarm.configuration_updated_timestamp }}</AlarmConfigurationUpdatedTimestamp>
|
<AlarmArn>{{ alarm.arn }}</AlarmArn>
|
||||||
<AlarmDescription>{{ alarm.description }}</AlarmDescription>
|
<AlarmConfigurationUpdatedTimestamp>{{ alarm.configuration_updated_timestamp }}</AlarmConfigurationUpdatedTimestamp>
|
||||||
<AlarmName>{{ alarm.name }}</AlarmName>
|
<AlarmDescription>{{ alarm.description }}</AlarmDescription>
|
||||||
<ComparisonOperator>{{ alarm.comparison_operator }}</ComparisonOperator>
|
<AlarmName>{{ alarm.name }}</AlarmName>
|
||||||
<Dimensions>
|
<ComparisonOperator>{{ alarm.comparison_operator }}</ComparisonOperator>
|
||||||
{% for dimension in alarm.dimensions %}
|
<Dimensions>
|
||||||
<member>
|
{% for dimension in alarm.dimensions %}
|
||||||
<Name>{{ dimension.name }}</Name>
|
<member>
|
||||||
<Value>{{ dimension.value }}</Value>
|
<Name>{{ dimension.name }}</Name>
|
||||||
</member>
|
<Value>{{ dimension.value }}</Value>
|
||||||
{% endfor %}
|
</member>
|
||||||
</Dimensions>
|
{% endfor %}
|
||||||
<EvaluationPeriods>{{ alarm.evaluation_periods }}</EvaluationPeriods>
|
</Dimensions>
|
||||||
<InsufficientDataActions>
|
<EvaluationPeriods>{{ alarm.evaluation_periods }}</EvaluationPeriods>
|
||||||
{% for action in alarm.insufficient_data_actions %}
|
<InsufficientDataActions>
|
||||||
<member>{{ action }}</member>
|
{% for action in alarm.insufficient_data_actions %}
|
||||||
{% endfor %}
|
<member>{{ action }}</member>
|
||||||
</InsufficientDataActions>
|
{% endfor %}
|
||||||
<MetricName>{{ alarm.metric_name }}</MetricName>
|
</InsufficientDataActions>
|
||||||
<Namespace>{{ alarm.namespace }}</Namespace>
|
<MetricName>{{ alarm.metric_name }}</MetricName>
|
||||||
<OKActions>
|
<Namespace>{{ alarm.namespace }}</Namespace>
|
||||||
{% for action in alarm.ok_actions %}
|
<OKActions>
|
||||||
<member>{{ action }}</member>
|
{% for action in alarm.ok_actions %}
|
||||||
{% endfor %}
|
<member>{{ action }}</member>
|
||||||
</OKActions>
|
{% endfor %}
|
||||||
<Period>{{ alarm.period }}</Period>
|
</OKActions>
|
||||||
<StateReason>{{ alarm.state_reason }}</StateReason>
|
<Period>{{ alarm.period }}</Period>
|
||||||
<StateReasonData>{{ alarm.state_reason_data }}</StateReasonData>
|
<StateReason>{{ alarm.state_reason }}</StateReason>
|
||||||
<StateUpdatedTimestamp>{{ alarm.state_updated_timestamp }}</StateUpdatedTimestamp>
|
<StateReasonData>{{ alarm.state_reason_data }}</StateReasonData>
|
||||||
<StateValue>{{ alarm.state_value }}</StateValue>
|
<StateUpdatedTimestamp>{{ alarm.state_updated_timestamp }}</StateUpdatedTimestamp>
|
||||||
<Statistic>{{ alarm.statistic }}</Statistic>
|
<StateValue>{{ alarm.state_value }}</StateValue>
|
||||||
<Threshold>{{ alarm.threshold }}</Threshold>
|
<Statistic>{{ alarm.statistic }}</Statistic>
|
||||||
<Unit>{{ alarm.unit }}</Unit>
|
<Threshold>{{ alarm.threshold }}</Threshold>
|
||||||
</member>
|
<Unit>{{ alarm.unit }}</Unit>
|
||||||
{% endfor %}
|
</member>
|
||||||
</MetricAlarms>
|
{% endfor %}
|
||||||
|
</MetricAlarms>
|
||||||
|
</DescribeAlarmsResult>
|
||||||
</DescribeAlarmsResponse>"""
|
</DescribeAlarmsResponse>"""
|
||||||
|
|
||||||
DELETE_METRIC_ALARMS_TEMPLATE = """<DeleteMetricAlarmResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">
|
DELETE_METRIC_ALARMS_TEMPLATE = """<DeleteMetricAlarmResponse xmlns="http://monitoring.amazonaws.com/doc/2010-08-01/">
|
||||||
|
Loading…
Reference in New Issue
Block a user