amazonka-cloudwatch-1.4.4: Amazon CloudWatch SDK.

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

Network.AWS.CloudWatch.DescribeAlarmsForMetric

Contents

Description

Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.

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:

data DescribeAlarmsForMetric Source #

Describes the inputs for DescribeAlarmsForMetric.

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 # 
ToPath DescribeAlarmsForMetric Source # 
ToHeaders DescribeAlarmsForMetric Source # 
ToQuery DescribeAlarmsForMetric Source # 
type Rep DescribeAlarmsForMetric Source # 
type Rep DescribeAlarmsForMetric = D1 (MetaData "DescribeAlarmsForMetric" "Network.AWS.CloudWatch.DescribeAlarmsForMetric" "amazonka-cloudwatch-1.4.4-5PvRRv2XeI7H4fkMIKBqZw" 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 "_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 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.

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 DescribeAlarmsForMetric.

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.4.4-5PvRRv2XeI7H4fkMIKBqZw" False) (C1 (MetaCons "DescribeAlarmsForMetricResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dafmrsMetricAlarms") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [MetricAlarm]))) (S1 (MetaSel (Just Symbol "_dafmrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int))))

Response Lenses

dafmrsMetricAlarms :: Lens' DescribeAlarmsForMetricResponse [MetricAlarm] Source #

A list of information for each alarm with the specified metric.