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 datasets 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 ListMetricSets = ListMetricSets' {}
- newListMetricSets :: ListMetricSets
- listMetricSets_anomalyDetectorArn :: Lens' ListMetricSets (Maybe Text)
- listMetricSets_nextToken :: Lens' ListMetricSets (Maybe Text)
- listMetricSets_maxResults :: Lens' ListMetricSets (Maybe Natural)
- data ListMetricSetsResponse = ListMetricSetsResponse' {}
- newListMetricSetsResponse :: Int -> ListMetricSetsResponse
- listMetricSetsResponse_nextToken :: Lens' ListMetricSetsResponse (Maybe Text)
- listMetricSetsResponse_metricSetSummaryList :: Lens' ListMetricSetsResponse (Maybe [MetricSetSummary])
- listMetricSetsResponse_httpStatus :: Lens' ListMetricSetsResponse Int
Creating a Request
data ListMetricSets Source #
See: newListMetricSets
smart constructor.
ListMetricSets' | |
|
Instances
newListMetricSets :: ListMetricSets Source #
Create a value of ListMetricSets
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:ListMetricSets'
, listMetricSets_anomalyDetectorArn
- The ARN of the anomaly detector containing the metrics sets to list.
$sel:nextToken:ListMetricSets'
, listMetricSets_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:ListMetricSets'
, listMetricSets_maxResults
- The maximum number of results to return.
Request Lenses
listMetricSets_anomalyDetectorArn :: Lens' ListMetricSets (Maybe Text) Source #
The ARN of the anomaly detector containing the metrics sets to list.
listMetricSets_nextToken :: Lens' ListMetricSets (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.
listMetricSets_maxResults :: Lens' ListMetricSets (Maybe Natural) Source #
The maximum number of results to return.
Destructuring the Response
data ListMetricSetsResponse Source #
See: newListMetricSetsResponse
smart constructor.
ListMetricSetsResponse' | |
|
Instances
newListMetricSetsResponse Source #
Create a value of ListMetricSetsResponse
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:ListMetricSets'
, listMetricSetsResponse_nextToken
- If the response is truncated, the list call returns this token. To
retrieve the next set of results, use the token in the next list
request.
$sel:metricSetSummaryList:ListMetricSetsResponse'
, listMetricSetsResponse_metricSetSummaryList
- A list of the datasets in the AWS Region, with configuration details for
each.
$sel:httpStatus:ListMetricSetsResponse'
, listMetricSetsResponse_httpStatus
- The response's http status code.
Response Lenses
listMetricSetsResponse_nextToken :: Lens' ListMetricSetsResponse (Maybe Text) Source #
If the response is truncated, the list call returns this token. To retrieve the next set of results, use the token in the next list request.
listMetricSetsResponse_metricSetSummaryList :: Lens' ListMetricSetsResponse (Maybe [MetricSetSummary]) Source #
A list of the datasets in the AWS Region, with configuration details for each.
listMetricSetsResponse_httpStatus :: Lens' ListMetricSetsResponse Int Source #
The response's http status code.