AWS SDK for .NET Documentation
MetricDatum Class
AmazonAmazon.CloudWatch.ModelMetricDatum Did this page help you?   Yes   No    Tell us about it...

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 MembersConstructorsMethodsProperties



IconMemberDescription
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:

Length
0 - 10


Equals(Object)
Determines whether the specified Object is equal to the current 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:

Length
1 - 255


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:

Allowed Values
Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None


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

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)