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.

A GetMetricData call returns an array of MetricDataResult structures. Each of these structures includes the data points for that metric, along with the time stamps of those data points and other identifying information.

Inheritance Hierarchy

System.Object
  Amazon.CloudWatch.Model.MetricDataResult

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

Syntax

C#
public class MetricDataResult

The MetricDataResult type exposes the following members

Constructors

NameDescription
Public Method MetricDataResult()

Properties

NameTypeDescription
Public Property Id System.String

Gets and sets the property Id.

The short name you specified to represent this metric.

Public Property Label System.String

Gets and sets the property Label.

The human-readable label associated with the data.

Public Property Messages System.Collections.Generic.List<Amazon.CloudWatch.Model.MessageData>

Gets and sets the property Messages.

A list of messages with additional information about the data returned.

Public Property StatusCode Amazon.CloudWatch.StatusCode

Gets and sets the property StatusCode.

The status of the returned data. Complete indicates that all data points in the requested time range were returned. PartialData means that an incomplete set of data points were returned. You can use the NextToken value that was returned and repeat your request to get more data points. NextToken is not returned if you are performing a math expression. InternalError indicates that an error occurred. Retry your request using NextToken, if present.

Public Property Timestamps System.Collections.Generic.List<System.DateTime>

Gets and sets the property Timestamps.

The time stamps for the data points, formatted in Unix timestamp format. The number of time stamps always matches the number of values and the value for Timestamps[x] is Values[x].

Public Property Values System.Collections.Generic.List<System.Double>

Gets and sets the property Values.

The data points for the metric corresponding to Timestamps. The number of values always matches the number of time stamps and the time stamp for Values[x] is Timestamps[x].

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