Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Network.AWS.CloudWatch.DescribeAlarmHistory
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.
- describeAlarmHistory :: DescribeAlarmHistory
- data DescribeAlarmHistory
- dahAlarmName :: Lens' DescribeAlarmHistory (Maybe Text)
- dahHistoryItemType :: Lens' DescribeAlarmHistory (Maybe HistoryItemType)
- dahEndDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
- dahStartDate :: Lens' DescribeAlarmHistory (Maybe UTCTime)
- dahNextToken :: Lens' DescribeAlarmHistory (Maybe Text)
- dahMaxRecords :: Lens' DescribeAlarmHistory (Maybe Natural)
- describeAlarmHistoryResponse :: Int -> DescribeAlarmHistoryResponse
- data DescribeAlarmHistoryResponse
- dahrsAlarmHistoryItems :: Lens' DescribeAlarmHistoryResponse [AlarmHistoryItem]
- dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text)
- dahrsStatus :: Lens' DescribeAlarmHistoryResponse Int
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
Request Lenses
dahAlarmName :: Lens' DescribeAlarmHistory (Maybe Text) Source
The name of the alarm.
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
Arguments
:: Int | |
-> 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 Source
The output for the DescribeAlarmHistory action.
See: describeAlarmHistoryResponse
smart constructor.
Response Lenses
dahrsAlarmHistoryItems :: Lens' DescribeAlarmHistoryResponse [AlarmHistoryItem] Source
A list of alarm histories in JSON format.
dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text) Source
A string that marks the start of the next batch of returned results.
dahrsStatus :: Lens' DescribeAlarmHistoryResponse Int Source
The response status code.