AWS SDK for .NET Documentation
ListMetricsRequest Class
AmazonAmazon.CloudWatch.ModelListMetricsRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the ListMetrics operation.

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#
public class ListMetricsRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
ListMetricsRequest()()()()
Initializes a new instance of the ListMetricsRequest class

Dimensions
A list of dimensions to filter against.

Constraints:

Length
0 - 10


Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the type of the current instance.
(Inherited from Object.)
MetricName
The name of the metric to filter against.

Constraints:

Length
1 - 255


Namespace
The namespace to filter against.

Constraints:

Length
1 - 255
Pattern
[^:].*


NextToken
The token returned by a previous call to indicate that there is more data available.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithDimensions(array<DimensionFilter>[]()[][]) Obsolete.
Adds elements to the Dimensions collection

WithDimensions(IEnumerable<(Of <<'(DimensionFilter>)>>)) Obsolete.
Adds elements to the Dimensions collection

WithMetricName(String) Obsolete.
Sets the MetricName property

WithNamespace(String) Obsolete.
Sets the Namespace property

WithNextToken(String) Obsolete.
Sets the NextToken property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 ListMetricsRequest
See Also

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