AWS SDK for .NET Documentation
ListMetrics Method
AmazonAmazon.CloudWatchAmazonCloudWatchListMetrics()()()() Did this page help you?   Yes   No    Tell us about it...

Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with GetMetricStatistics to obtain statistical data for a given metric.

NOTE: Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken values with subsequent ListMetrics operations.

NOTE: If you create a metric with the PutMetricData action, allow up to fifteen minutes for the metric to appear in calls to the ListMetrics action. Statistics about the metric, however, are available sooner using GetMetricStatistics.

Declaration Syntax
C#
ListMetricsResponse ListMetrics()
Return Value
The response from the ListMetrics service method, as returned by AmazonCloudWatch.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)