AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Container for the parameters to the GetMetricData operation. You can use the GetMetricData API to retrieve as many as 100 different metrics in a single request, with a total of as many as 100,800 datapoints. You can also optionally perform math expressions on the values of the returned statistics, to create new time series that represent new insights into your data. For example, using Lambda metrics, you could divide the Errors metric by the Invocations metric to get an error rate time series. For more information about metric math expressions, see Metric Math Syntax and Functions in the Amazon CloudWatch User Guide.

Calls to the GetMetricData API have a different pricing structure than calls to GetMetricStatistics. For more information about pricing, see Amazon CloudWatch Pricing.

Inheritance Hierarchy


Namespace: Amazon.CloudWatch.Model
Assembly: AWSSDK.CloudWatch.dll
Version: 3.x.y.z


public class GetMetricDataRequest : AmazonCloudWatchRequest

The GetMetricDataRequest type exposes the following members


Public Method GetMetricDataRequest()


Public Property EndTime System.DateTime

Gets and sets the property EndTime.

The time stamp indicating the latest data to be returned.

Public Property MaxDatapoints System.Int32

Gets and sets the property MaxDatapoints.

The maximum number of data points the request should return before paginating. If you omit this, the default of 100,800 is used.

Public Property MetricDataQueries System.Collections.Generic.List<Amazon.CloudWatch.Model.MetricDataQuery>

Gets and sets the property MetricDataQueries.

The metric queries to be returned. A single GetMetricData call can include as many as 100 MetricDataQuery structures. Each of these structures can specify either a metric to retrieve, or a math expression to perform on retrieved data.

Public Property NextToken System.String

Gets and sets the property NextToken.

Include this value, if it was returned by the previous call, to get the next set of data points.

Public Property ScanBy Amazon.CloudWatch.ScanBy

Gets and sets the property ScanBy.

The order in which data points should be returned. TimestampDescending returns the newest data first and paginates when the MaxDatapoints limit is reached. TimestampAscending returns the oldest data first and paginates when the MaxDatapoints limit is reached.

Public Property StartTime System.DateTime

Gets and sets the property StartTime.

The time stamp indicating the earliest data to be returned.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms