Safe Haskell | None |
---|---|
Language | Haskell2010 |
Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.
http://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/API_DescribeAlarmsForMetric.html
- data DescribeAlarmsForMetric
- describeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
- dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension]
- dafmMetricName :: Lens' DescribeAlarmsForMetric Text
- dafmNamespace :: Lens' DescribeAlarmsForMetric Text
- dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
- dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
- dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
- data DescribeAlarmsForMetricResponse
- describeAlarmsForMetricResponse :: DescribeAlarmsForMetricResponse
- dafmrMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm]
Request
Request constructor
describeAlarmsForMetric Source
DescribeAlarmsForMetric
constructor.
The fields accessible through corresponding lenses are:
Request lenses
dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension] Source
The list of dimensions associated with the metric.
dafmMetricName :: Lens' DescribeAlarmsForMetric Text Source
The name of the metric.
dafmNamespace :: Lens' DescribeAlarmsForMetric Text Source
The namespace of the metric.
dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural) Source
The period in seconds over which the statistic is applied.
dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic) Source
The statistic for the metric.
dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit) Source
The unit for the metric.
Response
Response constructor
describeAlarmsForMetricResponse :: DescribeAlarmsForMetricResponse Source
DescribeAlarmsForMetricResponse
constructor.
The fields accessible through corresponding lenses are:
Response lenses
dafmrMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm] Source
A list of information for each alarm with the specified metric.