The MetricDatum data type encapsulates the information sent with PutMetricData to either create a new metric or add new values to be aggregated into an existing metric.
Declaration Syntax
C# |
public class MetricDatum
Members
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
MetricDatum()()()() | Initializes a new instance of the MetricDatum class | |
Dimensions |
A list of dimensions associated with the metric. Note, when using the Dimensions value in a query, you need to append .member.N to it (e.g.,
Dimensions.member.N).
Constraints: | |
Equals(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.
Constraints: | |
StatisticValues |
A set of statistical values describing the metric.
| |
Timestamp |
The time stamp used for the metric. If not specified, the default value is set to the time the metric data was received.
| |
ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | |
Unit |
The unit of the metric.
Constraints: | |
Value |
The value for the metric. Although the Value parameter accepts numbers of type Double, Amazon CloudWatch truncates
values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10
exponents less than -130 (1 x 10^-130) are also truncated. | |
WithDimensions(array<Dimension>[]()[][]) | Obsolete.
Adds elements to the Dimensions collection
| |
WithDimensions(IEnumerable<(Of <<'(Dimension>)>>)) | Obsolete.
Adds elements to the Dimensions collection
| |
WithMetricName(String) | Obsolete.
Sets the MetricName property
| |
WithStatisticValues(StatisticSet) | Obsolete.
Sets the StatisticValues property
| |
WithTimestamp(DateTime) | Obsolete.
Sets the Timestamp property
| |
WithUnit(String) | Obsolete.
Sets the Unit property
| |
WithValue(Double) | Obsolete.
Sets the Value property
|
Inheritance Hierarchy
Object | |
MetricDatum |