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

Contents

Description

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

CloudWatch retains the history of an alarm even if you delete the alarm.

This operation returns paginated results.

Synopsis

Creating a Request

describeAlarmHistory :: DescribeAlarmHistory #

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

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

data DescribeAlarmHistory #

See: describeAlarmHistory smart constructor.

Instances
Eq DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Data DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Methods

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

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

toConstr :: DescribeAlarmHistory -> Constr #

dataTypeOf :: DescribeAlarmHistory -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Show DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Generic DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Associated Types

type Rep DescribeAlarmHistory :: * -> * #

Hashable DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

AWSPager DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

AWSRequest DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Associated Types

type Rs DescribeAlarmHistory :: * #

ToHeaders DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

ToPath DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

ToQuery DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

NFData DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Methods

rnf :: DescribeAlarmHistory -> () #

type Rep DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

type Rep DescribeAlarmHistory = D1 (MetaData "DescribeAlarmHistory" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.6.0-4goVJMNohH294KWKzR9Wr2" False) (C1 (MetaCons "DescribeAlarmHistory'" PrefixI True) ((S1 (MetaSel (Just "_dahAlarmName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_dahHistoryItemType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe HistoryItemType)) :*: S1 (MetaSel (Just "_dahEndDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601)))) :*: (S1 (MetaSel (Just "_dahStartDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 (MetaSel (Just "_dahNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dahMaxRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat))))))
type Rs DescribeAlarmHistory # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Request Lenses

dahAlarmName :: Lens' DescribeAlarmHistory (Maybe Text) #

The name of the alarm.

dahHistoryItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType) #

The type of alarm histories to retrieve.

dahEndDate :: Lens' DescribeAlarmHistory (Maybe UTCTime) #

The ending date to retrieve alarm history.

dahStartDate :: Lens' DescribeAlarmHistory (Maybe UTCTime) #

The starting date to retrieve alarm history.

dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text) #

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

dahMaxRecords :: Lens' DescribeAlarmHistory (Maybe Natural) #

The maximum number of alarm history records to retrieve.

Destructuring the Response

describeAlarmHistoryResponse #

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

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

data DescribeAlarmHistoryResponse #

See: describeAlarmHistoryResponse smart constructor.

Instances
Eq DescribeAlarmHistoryResponse # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Data DescribeAlarmHistoryResponse # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Methods

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

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

toConstr :: DescribeAlarmHistoryResponse -> Constr #

dataTypeOf :: DescribeAlarmHistoryResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read DescribeAlarmHistoryResponse # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Show DescribeAlarmHistoryResponse # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Generic DescribeAlarmHistoryResponse # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Associated Types

type Rep DescribeAlarmHistoryResponse :: * -> * #

NFData DescribeAlarmHistoryResponse # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

type Rep DescribeAlarmHistoryResponse # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

type Rep DescribeAlarmHistoryResponse = D1 (MetaData "DescribeAlarmHistoryResponse" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.6.0-4goVJMNohH294KWKzR9Wr2" False) (C1 (MetaCons "DescribeAlarmHistoryResponse'" PrefixI True) (S1 (MetaSel (Just "_dahrsAlarmHistoryItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AlarmHistoryItem])) :*: (S1 (MetaSel (Just "_dahrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: S1 (MetaSel (Just "_dahrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int))))

Response Lenses

dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text) #

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