amazonka-cloudwatch-1.6.0: Amazon CloudWatch SDK.

Copyright(c) 2013-2018 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.DescribeAlarms

Contents

Description

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

This operation returns paginated results.

Synopsis

Creating a Request

describeAlarms :: DescribeAlarms Source #

Creates a value of DescribeAlarms with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • daAlarmNamePrefix - The alarm name prefix. If this parameter is specified, you cannot specify AlarmNames .
  • daActionPrefix - The action name prefix.
  • daNextToken - The token returned by a previous call to indicate that there is more data available.
  • daStateValue - The state value to be used in matching alarms.
  • daAlarmNames - The names of the alarms.
  • daMaxRecords - The maximum number of alarm descriptions to retrieve.

data DescribeAlarms Source #

See: describeAlarms smart constructor.

Instances

Eq DescribeAlarms Source # 
Data DescribeAlarms Source # 

Methods

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

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

toConstr :: DescribeAlarms -> Constr #

dataTypeOf :: DescribeAlarms -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeAlarms Source # 
Show DescribeAlarms Source # 
Generic DescribeAlarms Source # 

Associated Types

type Rep DescribeAlarms :: * -> * #

Hashable DescribeAlarms Source # 
NFData DescribeAlarms Source # 

Methods

rnf :: DescribeAlarms -> () #

AWSPager DescribeAlarms Source # 
AWSRequest DescribeAlarms Source # 
ToHeaders DescribeAlarms Source # 
ToPath DescribeAlarms Source # 
ToQuery DescribeAlarms Source # 
type Rep DescribeAlarms Source # 
type Rep DescribeAlarms = D1 * (MetaData "DescribeAlarms" "Network.AWS.CloudWatch.DescribeAlarms" "amazonka-cloudwatch-1.6.0-9Bblpq0vnZd2Ryjsugueuz" False) (C1 * (MetaCons "DescribeAlarms'" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_daAlarmNamePrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) ((:*:) * (S1 * (MetaSel (Just Symbol "_daActionPrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_daNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))))) ((:*:) * (S1 * (MetaSel (Just Symbol "_daStateValue") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe StateValue))) ((:*:) * (S1 * (MetaSel (Just Symbol "_daAlarmNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [Text]))) (S1 * (MetaSel (Just Symbol "_daMaxRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Nat)))))))
type Rs DescribeAlarms Source # 

Request Lenses

daAlarmNamePrefix :: Lens' DescribeAlarms (Maybe Text) Source #

The alarm name prefix. If this parameter is specified, you cannot specify AlarmNames .

daActionPrefix :: Lens' DescribeAlarms (Maybe Text) Source #

The action name prefix.

daNextToken :: Lens' DescribeAlarms (Maybe Text) Source #

The token returned by a previous call to indicate that there is more data available.

daStateValue :: Lens' DescribeAlarms (Maybe StateValue) Source #

The state value to be used in matching alarms.

daAlarmNames :: Lens' DescribeAlarms [Text] Source #

The names of the alarms.

daMaxRecords :: Lens' DescribeAlarms (Maybe Natural) Source #

The maximum number of alarm descriptions to retrieve.

Destructuring the Response

describeAlarmsResponse Source #

Creates a value of DescribeAlarmsResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data DescribeAlarmsResponse Source #

See: describeAlarmsResponse smart constructor.

Instances

Eq DescribeAlarmsResponse Source # 
Data DescribeAlarmsResponse Source # 

Methods

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

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

toConstr :: DescribeAlarmsResponse -> Constr #

dataTypeOf :: DescribeAlarmsResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeAlarmsResponse Source # 
Show DescribeAlarmsResponse Source # 
Generic DescribeAlarmsResponse Source # 
NFData DescribeAlarmsResponse Source # 

Methods

rnf :: DescribeAlarmsResponse -> () #

type Rep DescribeAlarmsResponse Source # 
type Rep DescribeAlarmsResponse = D1 * (MetaData "DescribeAlarmsResponse" "Network.AWS.CloudWatch.DescribeAlarms" "amazonka-cloudwatch-1.6.0-9Bblpq0vnZd2Ryjsugueuz" False) (C1 * (MetaCons "DescribeAlarmsResponse'" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_darsMetricAlarms") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe [MetricAlarm]))) ((:*:) * (S1 * (MetaSel (Just Symbol "_darsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_darsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 * Int)))))

Response Lenses

darsMetricAlarms :: Lens' DescribeAlarmsResponse [MetricAlarm] Source #

The information for the specified alarms.

darsNextToken :: Lens' DescribeAlarmsResponse (Maybe Text) Source #

The token that marks the start of the next batch of returned results.

darsResponseStatus :: Lens' DescribeAlarmsResponse Int Source #

  • - | The response status code.