Copyright | (c) 2013-2021 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 |
Lists the alerts attached to a detector.
Amazon Lookout for Metrics API actions are eventually consistent. If you do a read operation on a resource immediately after creating or modifying it, use retries to allow time for the write operation to complete.
Synopsis
- data ListAlerts = ListAlerts' {}
- newListAlerts :: ListAlerts
- listAlerts_anomalyDetectorArn :: Lens' ListAlerts (Maybe Text)
- listAlerts_nextToken :: Lens' ListAlerts (Maybe Text)
- listAlerts_maxResults :: Lens' ListAlerts (Maybe Natural)
- data ListAlertsResponse = ListAlertsResponse' {
- nextToken :: Maybe Text
- alertSummaryList :: Maybe [AlertSummary]
- httpStatus :: Int
- newListAlertsResponse :: Int -> ListAlertsResponse
- listAlertsResponse_nextToken :: Lens' ListAlertsResponse (Maybe Text)
- listAlertsResponse_alertSummaryList :: Lens' ListAlertsResponse (Maybe [AlertSummary])
- listAlertsResponse_httpStatus :: Lens' ListAlertsResponse Int
Creating a Request
data ListAlerts Source #
See: newListAlerts
smart constructor.
ListAlerts' | |
|
Instances
newListAlerts :: ListAlerts Source #
Create a value of ListAlerts
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:anomalyDetectorArn:ListAlerts'
, listAlerts_anomalyDetectorArn
- The ARN of the alert's detector.
$sel:nextToken:ListAlerts'
, listAlerts_nextToken
- If the result of the previous request is truncated, the response
includes a NextToken
. To retrieve the next set of results, use the
token in the next request. Tokens expire after 24 hours.
$sel:maxResults:ListAlerts'
, listAlerts_maxResults
- The maximum number of results that will be displayed by the request.
Request Lenses
listAlerts_anomalyDetectorArn :: Lens' ListAlerts (Maybe Text) Source #
The ARN of the alert's detector.
listAlerts_nextToken :: Lens' ListAlerts (Maybe Text) Source #
If the result of the previous request is truncated, the response
includes a NextToken
. To retrieve the next set of results, use the
token in the next request. Tokens expire after 24 hours.
listAlerts_maxResults :: Lens' ListAlerts (Maybe Natural) Source #
The maximum number of results that will be displayed by the request.
Destructuring the Response
data ListAlertsResponse Source #
See: newListAlertsResponse
smart constructor.
ListAlertsResponse' | |
|
Instances
newListAlertsResponse Source #
Create a value of ListAlertsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:nextToken:ListAlerts'
, listAlertsResponse_nextToken
- If the response is truncated, the service returns this token. To
retrieve the next set of results, use this token in the next request.
$sel:alertSummaryList:ListAlertsResponse'
, listAlertsResponse_alertSummaryList
- Contains information about an alert.
$sel:httpStatus:ListAlertsResponse'
, listAlertsResponse_httpStatus
- The response's http status code.
Response Lenses
listAlertsResponse_nextToken :: Lens' ListAlertsResponse (Maybe Text) Source #
If the response is truncated, the service returns this token. To retrieve the next set of results, use this token in the next request.
listAlertsResponse_alertSummaryList :: Lens' ListAlertsResponse (Maybe [AlertSummary]) Source #
Contains information about an alert.
listAlertsResponse_httpStatus :: Lens' ListAlertsResponse Int Source #
The response's http status code.