Copyright | (c) 2013-2016 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 |
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.
- 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)
- dahrsResponseStatus :: 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.
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 #
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.
dahrsResponseStatus :: Lens' DescribeAlarmHistoryResponse Int Source #
The response status code.