amazonka-cloudwatch-1.5.0: Amazon CloudWatch SDK.

Copyright(c) 2013-2017 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.CloudWatch.DescribeAlarmsForMetric

Contents

Description

Retrieves the alarms for the specified metric. To filter the results, specify a statistic, period, or unit.

Synopsis

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:

  • 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, use ExtendedStatistics .
  • 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

Eq DescribeAlarmsForMetric Source # 
Data DescribeAlarmsForMetric Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeAlarmsForMetric -> c DescribeAlarmsForMetric #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeAlarmsForMetric #

toConstr :: DescribeAlarmsForMetric -> Constr #

dataTypeOf :: DescribeAlarmsForMetric -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeAlarmsForMetric) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeAlarmsForMetric) #

gmapT :: (forall b. Data b => b -> b) -> DescribeAlarmsForMetric -> DescribeAlarmsForMetric #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAlarmsForMetric -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAlarmsForMetric -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeAlarmsForMetric -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeAlarmsForMetric -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeAlarmsForMetric -> m DescribeAlarmsForMetric #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAlarmsForMetric -> m DescribeAlarmsForMetric #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAlarmsForMetric -> m DescribeAlarmsForMetric #

Read DescribeAlarmsForMetric Source # 
Show DescribeAlarmsForMetric Source # 
Generic DescribeAlarmsForMetric Source # 
Hashable DescribeAlarmsForMetric Source # 
NFData DescribeAlarmsForMetric Source # 

Methods

rnf :: DescribeAlarmsForMetric -> () #

AWSRequest DescribeAlarmsForMetric Source # 
ToQuery DescribeAlarmsForMetric Source # 
ToPath DescribeAlarmsForMetric Source # 
ToHeaders DescribeAlarmsForMetric Source # 
type Rep DescribeAlarmsForMetric Source # 
type Rep DescribeAlarmsForMetric = D1 (MetaData "DescribeAlarmsForMetric" "Network.AWS.CloudWatch.DescribeAlarmsForMetric" "amazonka-cloudwatch-1.5.0-FjkZLyKIzTk16i93NMFY5e" False) (C1 (MetaCons "DescribeAlarmsForMetric'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dafmPeriod") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))) ((:*:) (S1 (MetaSel (Just Symbol "_dafmDimensions") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [Dimension]))) (S1 (MetaSel (Just Symbol "_dafmUnit") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe StandardUnit))))) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dafmStatistic") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Statistic))) (S1 (MetaSel (Just Symbol "_dafmExtendedStatistic") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) ((:*:) (S1 (MetaSel (Just Symbol "_dafmMetricName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_dafmNamespace") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))))
type Rs DescribeAlarmsForMetric Source # 

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.

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.

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 #

See: describeAlarmsForMetricResponse smart constructor.

Instances

Eq DescribeAlarmsForMetricResponse Source # 
Data DescribeAlarmsForMetricResponse Source # 

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> DescribeAlarmsForMetricResponse -> c DescribeAlarmsForMetricResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c DescribeAlarmsForMetricResponse #

toConstr :: DescribeAlarmsForMetricResponse -> Constr #

dataTypeOf :: DescribeAlarmsForMetricResponse -> DataType #

dataCast1 :: Typeable (* -> *) t => (forall d. Data d => c (t d)) -> Maybe (c DescribeAlarmsForMetricResponse) #

dataCast2 :: Typeable (* -> * -> *) t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c DescribeAlarmsForMetricResponse) #

gmapT :: (forall b. Data b => b -> b) -> DescribeAlarmsForMetricResponse -> DescribeAlarmsForMetricResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAlarmsForMetricResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> DescribeAlarmsForMetricResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> DescribeAlarmsForMetricResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> DescribeAlarmsForMetricResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> DescribeAlarmsForMetricResponse -> m DescribeAlarmsForMetricResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAlarmsForMetricResponse -> m DescribeAlarmsForMetricResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> DescribeAlarmsForMetricResponse -> m DescribeAlarmsForMetricResponse #

Read DescribeAlarmsForMetricResponse Source # 
Show DescribeAlarmsForMetricResponse Source # 
Generic DescribeAlarmsForMetricResponse Source # 
NFData DescribeAlarmsForMetricResponse Source # 
type Rep DescribeAlarmsForMetricResponse Source # 
type Rep DescribeAlarmsForMetricResponse = D1 (MetaData "DescribeAlarmsForMetricResponse" "Network.AWS.CloudWatch.DescribeAlarmsForMetric" "amazonka-cloudwatch-1.5.0-FjkZLyKIzTk16i93NMFY5e" False) (C1 (MetaCons "DescribeAlarmsForMetricResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dafmrsMetricAlarms") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [MetricAlarm]))) (S1 (MetaSel (Just Symbol "_dafmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm] Source #

The information for each alarm with the specified metric.