| 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 |
Network.AWS.CloudWatch.DescribeAlarmsForMetric
Description
Retrieves the alarms for the specified metric. Specify a statistic, period, or unit to filter the results.
- 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)
- dafmExtendedStatistic :: Lens' DescribeAlarmsForMetric (Maybe Text)
- 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 #
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:
dafmPeriod- The period, in seconds, over which the statistic is applied.dafmDimensions- The dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.dafmUnit- The unit for the metric.dafmStatistic- The statistic for the metric, other than percentiles. For percentile statistics, useExtendedStatistics.dafmExtendedStatistic- The percentile statistic for the metric. Specify a value between p0.0 and p100.dafmMetricName- The name of the metric.dafmNamespace- The namespace of the metric.
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 dimensions associated with the metric. If the metric has any associated dimensions, you must specify them in order for the call to succeed.
dafmUnit :: Lens' DescribeAlarmsForMetric (Maybe StandardUnit) Source #
The unit for the metric.
dafmStatistic :: Lens' DescribeAlarmsForMetric (Maybe Statistic) Source #
The statistic for the metric, other than percentiles. For percentile statistics, use ExtendedStatistics .
dafmExtendedStatistic :: Lens' DescribeAlarmsForMetric (Maybe Text) Source #
The percentile statistic for the metric. Specify a value between p0.0 and p100.
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:
dafmrsMetricAlarms- The information for each alarm with the specified metric.dafmrsResponseStatus- -- | The response status code.
data DescribeAlarmsForMetricResponse Source #
See: describeAlarmsForMetricResponse smart constructor.
Instances
Response Lenses
dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm] Source #
The information for each alarm with the specified metric.
dafmrsResponseStatus :: Lens' DescribeAlarmsForMetricResponse Int Source #
- - | The response status code.