| Copyright | (c) 2013-2015 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.CloudWatch.DescribeAlarmsForMetric
Description
Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.
See: AWS API Reference for DescribeAlarmsForMetric.
- describeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
- data DescribeAlarmsForMetric
- dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
- dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension]
- dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
- dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
- dafmMetricName :: Lens' DescribeAlarmsForMetric Text
- dafmNamespace :: Lens' DescribeAlarmsForMetric Text
- describeAlarmsForMetricResponse :: Int -> DescribeAlarmsForMetricResponse
- data DescribeAlarmsForMetricResponse
- dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm]
- dafmrsStatus :: Lens' DescribeAlarmsForMetricResponse Int
Creating a Request
describeAlarmsForMetric Source
Arguments
| :: Text | |
| -> Text | |
| -> DescribeAlarmsForMetric |
Creates a value of DescribeAlarmsForMetric with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeAlarmsForMetric Source
See: describeAlarmsForMetric smart constructor.
Instances
Request Lenses
dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural) Source
The period in seconds over which the statistic is applied.
dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension] Source
The list of dimensions associated with the metric.
dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic) Source
The statistic for the metric.
dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit) Source
The unit for the metric.
dafmMetricName :: Lens' DescribeAlarmsForMetric Text Source
The name of the metric.
dafmNamespace :: Lens' DescribeAlarmsForMetric Text Source
The namespace of the metric.
Destructuring the Response
describeAlarmsForMetricResponse Source
Arguments
| :: Int | |
| -> DescribeAlarmsForMetricResponse |
Creates a value of DescribeAlarmsForMetricResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DescribeAlarmsForMetricResponse Source
The output for the DescribeAlarmsForMetric action.
See: describeAlarmsForMetricResponse smart constructor.
Response Lenses
dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm] Source
A list of information for each alarm with the specified metric.
dafmrsStatus :: Lens' DescribeAlarmsForMetricResponse Int Source
The response status code.