AWS SDK for .NET Documentation
GetMetricStatistics Method (getMetricStatisticsRequest)
AmazonAmazon.CloudWatchAmazonCloudWatchClientGetMetricStatistics(GetMetricStatisticsRequest) Did this page help you?   Yes   No    Tell us about it...

Gets statistics for the specified metric.

NOTE: The maximum number of data points returned from a single GetMetricStatistics request is 1,440. If a request is made that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, alter the request by narrowing the specified time range or increasing the specified period. Alternatively, make multiple requests across adjacent time ranges.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-minute granularity, Amazon CloudWatch aggregates data points with time stamps that fall within the same one-minute period. In such a case, the data points queried can greatly outnumber the data points returned.

NOTE: The maximum number of data points that can be queried is 50,850; whereas the maximum number of data points returned is 1,440.

The following examples show various statistics allowed by the data point query maximum of 50,850 when you call GetMetricStatistics on Amazon EC2 instances with detailed (one-minute) monitoring enabled:

For information about the namespace, metric names, and dimensions that other Amazon Web Services products use to send metrics to Cloudwatch, go to Amazon CloudWatch Metrics, Namespaces, and Dimensions Reference in the Amazon CloudWatch Developer Guide .

Declaration Syntax
public GetMetricStatisticsResponse GetMetricStatistics(
	GetMetricStatisticsRequest getMetricStatisticsRequest
getMetricStatisticsRequest (GetMetricStatisticsRequest)
Container for the necessary parameters to execute the GetMetricStatistics service method on AmazonCloudWatch.
Return Value
The response from the GetMetricStatistics service method, as returned by AmazonCloudWatch.

Assembly: AWSSDK (Module: AWSSDK) Version: (