amazonka-cloudwatch-1.1.0: Amazon CloudWatch SDK.

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

See: AWS API Reference for DescribeAlarmHistory.

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:

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:

Response Lenses

dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text) Source

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