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.

Namespace: Amazon.CloudWatch.Model
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  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
MetricDatum()()()()
Initializes a new instance of the MetricDatum class
Dimensions
A list of dimensions associated with the metric.

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>[]()[][])
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

Inheritance Hierarchy

System..::..Object
  Amazon.CloudWatch.Model..::..MetricDatum

See Also