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.
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class MetricDatum
Public Class MetricDatum
public ref class MetricDatum
Members
| All Members | Constructors | Properties | Methods |
| Member | Description | |
|---|---|---|
| MetricDatum()()()() | Initializes a new instance of the MetricDatum class | |
| Dimensions |
A list of dimensions associated with the metric.
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()()()() | (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>[]()[][]) |
Adds elements to the Dimensions collection
| |
| WithDimensions(IEnumerable<(Of <<'(Dimension>)>>)) |
Adds elements to the Dimensions collection
| |
| WithMetricName(String) |
Sets the MetricName property
| |
| WithStatisticValues(StatisticSet) |
Sets the StatisticValues property
| |
| WithTimestamp(DateTime) |
Sets the Timestamp property
| |
| WithUnit(String) |
Sets the Unit property
| |
| WithValue(Double) |
Sets the Value property
|