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

Methods

rnf :: DescribeAlarmHistory -> () #

AWSPager DescribeAlarmHistory # 
AWSRequest DescribeAlarmHistory # 
ToHeaders DescribeAlarmHistory # 
ToPath DescribeAlarmHistory # 
ToQuery DescribeAlarmHistory # 
type Rep DescribeAlarmHistory # 
type Rep DescribeAlarmHistory = D1 * (MetaData "DescribeAlarmHistory" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.6.0-5Fkxi9Y8W817fytnL0zh2A" 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 # 

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 # 
Data DescribeAlarmHistoryResponse # 

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 # 
Show DescribeAlarmHistoryResponse # 
Generic DescribeAlarmHistoryResponse # 
NFData DescribeAlarmHistoryResponse # 
type Rep DescribeAlarmHistoryResponse # 
type Rep DescribeAlarmHistoryResponse = D1 * (MetaData "DescribeAlarmHistoryResponse" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.6.0-5Fkxi9Y8W817fytnL0zh2A" 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) #

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