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 detectors in the current AWS Region.
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 ListAnomalyDetectors = ListAnomalyDetectors' {}
- newListAnomalyDetectors :: ListAnomalyDetectors
- listAnomalyDetectors_nextToken :: Lens' ListAnomalyDetectors (Maybe Text)
- listAnomalyDetectors_maxResults :: Lens' ListAnomalyDetectors (Maybe Natural)
- data ListAnomalyDetectorsResponse = ListAnomalyDetectorsResponse' {}
- newListAnomalyDetectorsResponse :: Int -> ListAnomalyDetectorsResponse
- listAnomalyDetectorsResponse_nextToken :: Lens' ListAnomalyDetectorsResponse (Maybe Text)
- listAnomalyDetectorsResponse_anomalyDetectorSummaryList :: Lens' ListAnomalyDetectorsResponse (Maybe [AnomalyDetectorSummary])
- listAnomalyDetectorsResponse_httpStatus :: Lens' ListAnomalyDetectorsResponse Int
Creating a Request
data ListAnomalyDetectors Source #
See: newListAnomalyDetectors
smart constructor.
Instances
newListAnomalyDetectors :: ListAnomalyDetectors Source #
Create a value of ListAnomalyDetectors
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:ListAnomalyDetectors'
, listAnomalyDetectors_nextToken
- If the result of the previous request was 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:ListAnomalyDetectors'
, listAnomalyDetectors_maxResults
- The maximum number of results to return.
Request Lenses
listAnomalyDetectors_nextToken :: Lens' ListAnomalyDetectors (Maybe Text) Source #
If the result of the previous request was 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.
listAnomalyDetectors_maxResults :: Lens' ListAnomalyDetectors (Maybe Natural) Source #
The maximum number of results to return.
Destructuring the Response
data ListAnomalyDetectorsResponse Source #
See: newListAnomalyDetectorsResponse
smart constructor.
ListAnomalyDetectorsResponse' | |
|
Instances
newListAnomalyDetectorsResponse Source #
Create a value of ListAnomalyDetectorsResponse
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:ListAnomalyDetectors'
, listAnomalyDetectorsResponse_nextToken
- If the response is truncated, the service returns this token. To
retrieve the next set of results, use the token in the next request.
$sel:anomalyDetectorSummaryList:ListAnomalyDetectorsResponse'
, listAnomalyDetectorsResponse_anomalyDetectorSummaryList
- A list of anomaly detectors in the account in the current region.
$sel:httpStatus:ListAnomalyDetectorsResponse'
, listAnomalyDetectorsResponse_httpStatus
- The response's http status code.
Response Lenses
listAnomalyDetectorsResponse_nextToken :: Lens' ListAnomalyDetectorsResponse (Maybe Text) Source #
If the response is truncated, the service returns this token. To retrieve the next set of results, use the token in the next request.
listAnomalyDetectorsResponse_anomalyDetectorSummaryList :: Lens' ListAnomalyDetectorsResponse (Maybe [AnomalyDetectorSummary]) Source #
A list of anomaly detectors in the account in the current region.
listAnomalyDetectorsResponse_httpStatus :: Lens' ListAnomalyDetectorsResponse Int Source #
The response's http status code.