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 |
List the specified metrics. You can use the returned metrics with GetMetricData or GetMetricStatistics to obtain statistical data.
Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.
After you create a metric, allow up to 15 minutes before the metric appears. You can see statistics about the metric sooner by using GetMetricData or GetMetricStatistics.
ListMetrics
doesn't return information about metrics if those metrics
haven't reported data in the past two weeks. To retrieve those metrics,
use
GetMetricData
or
GetMetricStatistics.
This operation returns paginated results.
Synopsis
- data ListMetrics = ListMetrics' {}
- newListMetrics :: ListMetrics
- listMetrics_metricName :: Lens' ListMetrics (Maybe Text)
- listMetrics_namespace :: Lens' ListMetrics (Maybe Text)
- listMetrics_nextToken :: Lens' ListMetrics (Maybe Text)
- listMetrics_recentlyActive :: Lens' ListMetrics (Maybe RecentlyActive)
- listMetrics_dimensions :: Lens' ListMetrics (Maybe [DimensionFilter])
- data ListMetricsResponse = ListMetricsResponse' {}
- newListMetricsResponse :: Int -> ListMetricsResponse
- listMetricsResponse_metrics :: Lens' ListMetricsResponse (Maybe [Metric])
- listMetricsResponse_nextToken :: Lens' ListMetricsResponse (Maybe Text)
- listMetricsResponse_httpStatus :: Lens' ListMetricsResponse Int
Creating a Request
data ListMetrics Source #
See: newListMetrics
smart constructor.
ListMetrics' | |
|
Instances
newListMetrics :: ListMetrics Source #
Create a value of ListMetrics
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:metricName:ListMetrics'
, listMetrics_metricName
- The name of the metric to filter against. Only the metrics with names
that match exactly will be returned.
$sel:namespace:ListMetrics'
, listMetrics_namespace
- The metric namespace to filter against. Only the namespace that matches
exactly will be returned.
$sel:nextToken:ListMetrics'
, listMetrics_nextToken
- The token returned by a previous call to indicate that there is more
data available.
$sel:recentlyActive:ListMetrics'
, listMetrics_recentlyActive
- To filter the results to show only metrics that have had data points
published in the past three hours, specify this parameter with a value
of PT3H
. This is the only valid value for this parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
$sel:dimensions:ListMetrics'
, listMetrics_dimensions
- The dimensions to filter against. Only the dimensions that match exactly
will be returned.
Request Lenses
listMetrics_metricName :: Lens' ListMetrics (Maybe Text) Source #
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
listMetrics_namespace :: Lens' ListMetrics (Maybe Text) Source #
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
listMetrics_nextToken :: Lens' ListMetrics (Maybe Text) Source #
The token returned by a previous call to indicate that there is more data available.
listMetrics_recentlyActive :: Lens' ListMetrics (Maybe RecentlyActive) Source #
To filter the results to show only metrics that have had data points
published in the past three hours, specify this parameter with a value
of PT3H
. This is the only valid value for this parameter.
The results that are returned are an approximation of the value you specify. There is a low probability that the returned results include metrics with last published data as much as 40 minutes more than the specified time interval.
listMetrics_dimensions :: Lens' ListMetrics (Maybe [DimensionFilter]) Source #
The dimensions to filter against. Only the dimensions that match exactly will be returned.
Destructuring the Response
data ListMetricsResponse Source #
See: newListMetricsResponse
smart constructor.
Instances
newListMetricsResponse Source #
Create a value of ListMetricsResponse
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:metrics:ListMetricsResponse'
, listMetricsResponse_metrics
- The metrics that match your request.
$sel:nextToken:ListMetrics'
, listMetricsResponse_nextToken
- The token that marks the start of the next batch of returned results.
$sel:httpStatus:ListMetricsResponse'
, listMetricsResponse_httpStatus
- The response's http status code.
Response Lenses
listMetricsResponse_metrics :: Lens' ListMetricsResponse (Maybe [Metric]) Source #
The metrics that match your request.
listMetricsResponse_nextToken :: Lens' ListMetricsResponse (Maybe Text) Source #
The token that marks the start of the next batch of returned results.
listMetricsResponse_httpStatus :: Lens' ListMetricsResponse Int Source #
The response's http status code.