Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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:
dahAlarmName
- The name of the alarm.dahHistoryItemType
- The type of alarm histories to retrieve.dahEndDate
- The ending date to retrieve alarm history.dahStartDate
- The starting date to retrieve alarm history.dahNextToken
- The token returned by a previous call to indicate that there is more data available.dahMaxRecords
- The maximum number of alarm history records to retrieve.
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 #
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:
dahrsAlarmHistoryItems
- The alarm histories, in JSON format.dahrsNextToken
- The token that marks the start of the next batch of returned results.dahrsResponseStatus
- -- | The response status code.
data DescribeAlarmHistoryResponse Source #
See: describeAlarmHistoryResponse
smart constructor.
Instances
Response Lenses
dahrsAlarmHistoryItems :: Lens' DescribeAlarmHistoryResponse [AlarmHistoryItem] Source #
The alarm histories, in JSON format.
dahrsNextToken :: Lens' DescribeAlarmHistoryResponse (Maybe Text) Source #
The token that marks the start of the next batch of returned results.
dahrsResponseStatus :: Lens' DescribeAlarmHistoryResponse Int Source #
- - | The response status code.