amazonka-cloudwatch-1.4.1: 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.DescribeAlarmHistory

Contents

Description

Retrieves history for the specified alarm. Filter alarms by date range or item type. If an alarm name is not specified, Amazon CloudWatch returns histories for all of the owner's alarms.

Amazon CloudWatch retains the history of an alarm for two weeks, whether or not you delete the alarm.

This operation returns paginated results.

Synopsis

Creating a Request

describeAlarmHistory :: DescribeAlarmHistory Source #

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 Source #

See: describeAlarmHistory smart constructor.

Instances

Eq DescribeAlarmHistory Source # 
Data DescribeAlarmHistory Source # 

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 Source # 
Show DescribeAlarmHistory Source # 
Generic DescribeAlarmHistory Source # 
Hashable DescribeAlarmHistory Source # 
NFData DescribeAlarmHistory Source # 

Methods

rnf :: DescribeAlarmHistory -> () #

AWSPager DescribeAlarmHistory Source # 
AWSRequest DescribeAlarmHistory Source # 
ToQuery DescribeAlarmHistory Source # 
ToPath DescribeAlarmHistory Source # 
ToHeaders DescribeAlarmHistory Source # 
type Rep DescribeAlarmHistory Source # 
type Rep DescribeAlarmHistory = D1 (MetaData "DescribeAlarmHistory" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.4.1-LEQHaHRJY9mEUXBa7VTlqQ" False) (C1 (MetaCons "DescribeAlarmHistory'" PrefixI True) ((:*:) ((:*:) (S1 (MetaSel (Just Symbol "_dahAlarmName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) ((:*:) (S1 (MetaSel (Just Symbol "_dahHistoryItemType") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe HistoryItemType))) (S1 (MetaSel (Just Symbol "_dahEndDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601))))) ((:*:) (S1 (MetaSel (Just Symbol "_dahStartDate") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601))) ((:*:) (S1 (MetaSel (Just Symbol "_dahNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dahMaxRecords") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Nat)))))))
type Rs DescribeAlarmHistory Source # 

Request Lenses

dahHistoryItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType) Source #

The type of alarm histories to retrieve.

dahEndDate :: Lens' DescribeAlarmHistory (Maybe UTCTime) Source #

The ending date to retrieve alarm history.

dahStartDate :: Lens' DescribeAlarmHistory (Maybe UTCTime) Source #

The starting date to retrieve alarm history.

dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text) Source #

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

dahMaxRecords :: Lens' DescribeAlarmHistory (Maybe Natural) Source #

The maximum number of alarm history records to retrieve.

Destructuring the Response

describeAlarmHistoryResponse Source #

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 Source #

The output for the DescribeAlarmHistory action.

See: describeAlarmHistoryResponse smart constructor.

Instances

Eq DescribeAlarmHistoryResponse Source # 
Data DescribeAlarmHistoryResponse Source # 

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 Source # 
Show DescribeAlarmHistoryResponse Source # 
Generic DescribeAlarmHistoryResponse Source # 
NFData DescribeAlarmHistoryResponse Source # 
type Rep DescribeAlarmHistoryResponse Source # 
type Rep DescribeAlarmHistoryResponse = D1 (MetaData "DescribeAlarmHistoryResponse" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.4.1-LEQHaHRJY9mEUXBa7VTlqQ" False) (C1 (MetaCons "DescribeAlarmHistoryResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_dahrsAlarmHistoryItems") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe [AlarmHistoryItem]))) ((:*:) (S1 (MetaSel (Just Symbol "_dahrsNextToken") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))) (S1 (MetaSel (Just Symbol "_dahrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))))

Response Lenses

dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text) Source #

A string that marks the start of the next batch of returned results.