Retrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit.
This operation retrieves only standard alarms that are based on the specified metric. It does not return alarms based on math expressions that use the specified metric, or composite alarms that use the specified metric.
cloudwatch_describe_alarms_for_metric(MetricName, Namespace, Statistic,
ExtendedStatistic, Dimensions, Period, Unit)
[required] The name of the metric.
[required] The namespace of the metric.
The statistic for the metric, other than percentiles. For percentile
statistics, use ExtendedStatistics
.
The percentile statistic for the metric. Specify a value between p0.0 and p100.
The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
The period, in seconds, over which the statistic is applied.
The unit for the metric.
svc$describe_alarms_for_metric( MetricName = "string", Namespace = "string", Statistic = "SampleCount"|"Average"|"Sum"|"Minimum"|"Maximum", ExtendedStatistic = "string", Dimensions = list( list( Name = "string", Value = "string" ) ), Period = 123, Unit = "Seconds"|"Microseconds"|"Milliseconds"|"Bytes"|"Kilobytes"|"Megabytes"|"Gigabytes"|"Terabytes"|"Bits"|"Kilobits"|"Megabits"|"Gigabits"|"Terabits"|"Percent"|"Count"|"Bytes/Second"|"Kilobytes/Second"|"Megabytes/Second"|"Gigabytes/Second"|"Terabytes/Second"|"Bits/Second"|"Kilobits/Second"|"Megabits/Second"|"Gigabits/Second"|"Terabits/Second"|"Count/Second"|"None" )