Copyright | (c) 2013-2018 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 |
Language | Haskell2010 |
List the specified metrics. You can use the returned metrics with 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 fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics
.
This operation returns paginated results.
- listMetrics :: ListMetrics
- data ListMetrics
- lmMetricName :: Lens' ListMetrics (Maybe Text)
- lmNamespace :: Lens' ListMetrics (Maybe Text)
- lmNextToken :: Lens' ListMetrics (Maybe Text)
- lmDimensions :: Lens' ListMetrics [DimensionFilter]
- listMetricsResponse :: Int -> ListMetricsResponse
- data ListMetricsResponse
- lmrsMetrics :: Lens' ListMetricsResponse [Metric]
- lmrsNextToken :: Lens' ListMetricsResponse (Maybe Text)
- lmrsResponseStatus :: Lens' ListMetricsResponse Int
Creating a Request
listMetrics :: ListMetrics Source #
Creates a value of ListMetrics
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lmMetricName
- The name of the metric to filter against.lmNamespace
- The namespace to filter against.lmNextToken
- The token returned by a previous call to indicate that there is more data available.lmDimensions
- The dimensions to filter against.
data ListMetrics Source #
See: listMetrics
smart constructor.
Request Lenses
lmMetricName :: Lens' ListMetrics (Maybe Text) Source #
The name of the metric to filter against.
lmNamespace :: Lens' ListMetrics (Maybe Text) Source #
The namespace to filter against.
lmNextToken :: Lens' ListMetrics (Maybe Text) Source #
The token returned by a previous call to indicate that there is more data available.
lmDimensions :: Lens' ListMetrics [DimensionFilter] Source #
The dimensions to filter against.
Destructuring the Response
Creates a value of ListMetricsResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
lmrsMetrics
- The metrics.lmrsNextToken
- The token that marks the start of the next batch of returned results.lmrsResponseStatus
- -- | The response status code.
data ListMetricsResponse Source #
See: listMetricsResponse
smart constructor.
Response Lenses
lmrsMetrics :: Lens' ListMetricsResponse [Metric] Source #
The metrics.
lmrsNextToken :: Lens' ListMetricsResponse (Maybe Text) Source #
The token that marks the start of the next batch of returned results.
lmrsResponseStatus :: Lens' ListMetricsResponse Int Source #
- - | The response status code.