| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.LookoutMetrics.ListAnomalyDetectors
Description
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_maxResults :: Lens' ListAnomalyDetectors (Maybe Natural)
- listAnomalyDetectors_nextToken :: Lens' ListAnomalyDetectors (Maybe Text)
- data ListAnomalyDetectorsResponse = ListAnomalyDetectorsResponse' {}
- newListAnomalyDetectorsResponse :: Int -> ListAnomalyDetectorsResponse
- listAnomalyDetectorsResponse_anomalyDetectorSummaryList :: Lens' ListAnomalyDetectorsResponse (Maybe [AnomalyDetectorSummary])
- listAnomalyDetectorsResponse_nextToken :: Lens' ListAnomalyDetectorsResponse (Maybe Text)
- listAnomalyDetectorsResponse_httpStatus :: Lens' ListAnomalyDetectorsResponse Int
Creating a Request
data ListAnomalyDetectors Source #
See: newListAnomalyDetectors smart constructor.
Constructors
| ListAnomalyDetectors' | |
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:maxResults:ListAnomalyDetectors', listAnomalyDetectors_maxResults - The maximum number of results to return.
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.
Request Lenses
listAnomalyDetectors_maxResults :: Lens' ListAnomalyDetectors (Maybe Natural) Source #
The maximum number of results to return.
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.
Destructuring the Response
data ListAnomalyDetectorsResponse Source #
See: newListAnomalyDetectorsResponse smart constructor.
Constructors
| ListAnomalyDetectorsResponse' | |
Fields
| |
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:anomalyDetectorSummaryList:ListAnomalyDetectorsResponse', listAnomalyDetectorsResponse_anomalyDetectorSummaryList - A list of anomaly detectors in the account in the current region.
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:httpStatus:ListAnomalyDetectorsResponse', listAnomalyDetectorsResponse_httpStatus - The response's http status code.
Response Lenses
listAnomalyDetectorsResponse_anomalyDetectorSummaryList :: Lens' ListAnomalyDetectorsResponse (Maybe [AnomalyDetectorSummary]) Source #
A list of anomaly detectors in the account in the current region.
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_httpStatus :: Lens' ListAnomalyDetectorsResponse Int Source #
The response's http status code.