Amazon.CloudWatch.AmazonCloudWatchClient.ListMetricsAsync C# (CSharp) Method

ListMetricsAsync() public method

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.

/// Request processing has failed due to some unknown error, exception, or failure. /// /// The value of an input parameter is bad or out-of-range. ///
public ListMetricsAsync ( System cancellationToken = default(CancellationToken) ) : Task
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task
        public Task<ListMetricsResponse> ListMetricsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            return ListMetricsAsync(new ListMetricsRequest(), cancellationToken);
        }
        /// <summary>

Same methods

AmazonCloudWatchClient::ListMetricsAsync ( ListMetricsRequest request, System cancellationToken = default(CancellationToken) ) : Task