DescribeAlarmsForMetric

Description

Returns alarms for the specified metric.

Can also filter the period, statistic or units.

Request Parameters

  • MetricName – The name of the metric
    • Required: Yes
    • Type: String
    • Length constraints: from 1 to 255 symbols
  • Namespace – The namespace of the metric.
    • Required: Yes
    • Type: String
    • Length constraints: from 1 to 255 symbols
  • Period – The alarm period
    • Required: No
    • Type: Int
    • Valid range: Value must be divisible by 60, minimum value is 60
  • Statistic – The statistic for the metric
    • Required: No
    • Type: String
    • Valid values: Average | Sum | SampleCount | Maximum | Minimum
  • Dimensions.member.n – The alarm dimensions (see User Guide)
    • Required: No
    • Type: Array of Dimension objects
    • Length constraints: from 1 to 10 items

Response Elements

  • MetricAlarms – The list of alarms

Examples

c2-cw DescribeAlarmsForMetric MetricName <metric_name> Namespace <namespace>

c2-cw DescribeAlarmsForMetric MetricName <metric_name> Namespace <namespace> Period <period>

c2-cw DescribeAlarmsForMetric MetricName <metric_name> Namespace <namespace> \
                              Dimensions.member.1.Name "InstanceId" \
                              Dimensions.member.1.Value <instance_id>