amazonka-cloudwatch-1.6.1: 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 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 # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Data DescribeAlarmHistory Source # 
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 Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Show DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Generic DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Associated Types

type Rep DescribeAlarmHistory :: Type -> Type #

Hashable DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

AWSPager DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

AWSRequest DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Associated Types

type Rs DescribeAlarmHistory :: Type #

ToHeaders DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

ToPath DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

ToQuery DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

NFData DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Methods

rnf :: DescribeAlarmHistory -> () #

type Rep DescribeAlarmHistory Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

type Rep DescribeAlarmHistory = D1 (MetaData "DescribeAlarmHistory" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.6.1-7Rnwowqga1k8zXg3cAhS87" 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 Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

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 #

See: describeAlarmHistoryResponse smart constructor.

Instances
Eq DescribeAlarmHistoryResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Data DescribeAlarmHistoryResponse Source # 
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 Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Show DescribeAlarmHistoryResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Generic DescribeAlarmHistoryResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

Associated Types

type Rep DescribeAlarmHistoryResponse :: Type -> Type #

NFData DescribeAlarmHistoryResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

type Rep DescribeAlarmHistoryResponse Source # 
Instance details

Defined in Network.AWS.CloudWatch.DescribeAlarmHistory

type Rep DescribeAlarmHistoryResponse = D1 (MetaData "DescribeAlarmHistoryResponse" "Network.AWS.CloudWatch.DescribeAlarmHistory" "amazonka-cloudwatch-1.6.1-7Rnwowqga1k8zXg3cAhS87" 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) Source #

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