Copyright | (c) 2013-2016 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 |
Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.
- describeAlarmsForMetric :: Text -> Text -> DescribeAlarmsForMetric
- data DescribeAlarmsForMetric
- dafmPeriod :: Lens' DescribeAlarmsForMetric (Maybe Natural)
- dafmDimensions :: Lens' DescribeAlarmsForMetric [Dimension]
- dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit)
- dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic)
- dafmMetricName :: Lens' DescribeAlarmsForMetric Text
- dafmNamespace :: Lens' DescribeAlarmsForMetric Text
- describeAlarmsForMetricResponse :: Int -> DescribeAlarmsForMetricResponse
- data DescribeAlarmsForMetricResponse
- dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm]
- dafmrsResponseStatus :: Lens' DescribeAlarmsForMetricResponse Int
Creating a Request
describeAlarmsForMetric Source #
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.
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. If the metric has any associated dimensions, you must specify them in order for the DescribeAlarmsForMetric to succeed.
dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit) Source #
The unit for the metric.
dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic) Source #
The statistic 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 #
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.
dafmrsResponseStatus :: Lens' DescribeAlarmsForMetricResponse Int Source #
The response status code.