diff --git a/moto/cloudwatch/responses.py b/moto/cloudwatch/responses.py index 064e6964d..d35560aeb 100644 --- a/moto/cloudwatch/responses.py +++ b/moto/cloudwatch/responses.py @@ -95,52 +95,54 @@ PUT_METRIC_ALARM_TEMPLATE = """ - - {% for alarm in alarms %} - - {{ alarm.actions_enabled }} - - {% for action in alarm.alarm_actions %} - {{ action }} - {% endfor %} - - {{ alarm.arn }} - {{ alarm.configuration_updated_timestamp }} - {{ alarm.description }} - {{ alarm.name }} - {{ alarm.comparison_operator }} - - {% for dimension in alarm.dimensions %} - - {{ dimension.name }} - {{ dimension.value }} - - {% endfor %} - - {{ alarm.evaluation_periods }} - - {% for action in alarm.insufficient_data_actions %} - {{ action }} - {% endfor %} - - {{ alarm.metric_name }} - {{ alarm.namespace }} - - {% for action in alarm.ok_actions %} - {{ action }} - {% endfor %} - - {{ alarm.period }} - {{ alarm.state_reason }} - {{ alarm.state_reason_data }} - {{ alarm.state_updated_timestamp }} - {{ alarm.state_value }} - {{ alarm.statistic }} - {{ alarm.threshold }} - {{ alarm.unit }} - - {% endfor %} - + + + {% for alarm in alarms %} + + {{ alarm.actions_enabled }} + + {% for action in alarm.alarm_actions %} + {{ action }} + {% endfor %} + + {{ alarm.arn }} + {{ alarm.configuration_updated_timestamp }} + {{ alarm.description }} + {{ alarm.name }} + {{ alarm.comparison_operator }} + + {% for dimension in alarm.dimensions %} + + {{ dimension.name }} + {{ dimension.value }} + + {% endfor %} + + {{ alarm.evaluation_periods }} + + {% for action in alarm.insufficient_data_actions %} + {{ action }} + {% endfor %} + + {{ alarm.metric_name }} + {{ alarm.namespace }} + + {% for action in alarm.ok_actions %} + {{ action }} + {% endfor %} + + {{ alarm.period }} + {{ alarm.state_reason }} + {{ alarm.state_reason_data }} + {{ alarm.state_updated_timestamp }} + {{ alarm.state_value }} + {{ alarm.statistic }} + {{ alarm.threshold }} + {{ alarm.unit }} + + {% endfor %} + + """ DELETE_METRIC_ALARMS_TEMPLATE = """