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.

Namespace: Amazon.CloudWatch.Model
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)

Syntax

         
 C#  Visual Basic  Visual C++ 
public class ListMetricsRequest : AmazonWebServiceRequest
Public Class ListMetricsRequest _
	Inherits AmazonWebServiceRequest
public ref class ListMetricsRequest : public AmazonWebServiceRequest

Members

            
 All Members  Constructors   Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
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>[]()[][])
Adds elements to the Dimensions collection
WithDimensions(IEnumerable<(Of <<'(DimensionFilter>)>>))
Adds elements to the Dimensions collection
WithMetricName(String)
Sets the MetricName property
WithNamespace(String)
Sets the Namespace property
WithNextToken(String)
Sets the NextToken property

Inheritance Hierarchy

System..::..Object
  Amazon.Runtime..::..AmazonWebServiceRequest
    Amazon.CloudWatch.Model..::..ListMetricsRequest

See Also