Struct aws_sdk_cloudwatch::client::fluent_builders::ListMetrics [−][src]
pub struct ListMetrics<C = DynConnector, M = AwsMiddleware, R = Standard> { /* fields omitted */ }
Expand description
Fluent builder constructing a request to ListMetrics
.
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.
Implementations
impl<C, M, R> ListMetrics<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
impl<C, M, R> ListMetrics<C, M, R> where
C: SmithyConnector,
M: SmithyMiddleware<C>,
R: NewRequestPolicy,
pub async fn send(self) -> Result<ListMetricsOutput, SdkError<ListMetricsError>> where
R::Policy: SmithyRetryPolicy<ListMetricsInputOperationOutputAlias, ListMetricsOutput, ListMetricsError, ListMetricsInputOperationRetryAlias>,
pub async fn send(self) -> Result<ListMetricsOutput, SdkError<ListMetricsError>> where
R::Policy: SmithyRetryPolicy<ListMetricsInputOperationOutputAlias, ListMetricsOutput, ListMetricsError, ListMetricsInputOperationRetryAlias>,
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
The metric namespace to filter against. Only the namespace that matches exactly will be returned.
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
The name of the metric to filter against. Only the metrics with names that match exactly will be returned.
Appends an item to Dimensions
.
To override the contents of this collection use set_dimensions
.
The dimensions to filter against. Only the dimensions that match exactly will be returned.
The dimensions to filter against. Only the dimensions that match exactly will be returned.
The token returned by a previous call to indicate that there is more data available.
The token returned by a previous call to indicate that there is more data available.
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.
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.
Trait Implementations
Auto Trait Implementations
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !RefUnwindSafe for ListMetrics<C, M, R>
impl<C, M, R> Unpin for ListMetrics<C, M, R>
impl<C = DynConnector, M = AwsMiddleware, R = Standard> !UnwindSafe for ListMetrics<C, M, R>
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more