AWS SDK for .NET Documentation
PutMetricDataRequest Class
AmazonAmazon.CloudWatch.ModelPutMetricDataRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the PutMetricData operation.

Publishes metric data points to Amazon CloudWatch. Amazon Cloudwatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric.

NOTE: If you create a metric with the PutMetricData action, allow up to fifteen minutes for the metric to appear in calls to the ListMetrics action.

The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and 40 KB for HTTP POST requests.

IMPORTANT: 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.

Declaration Syntax
C#
public class PutMetricDataRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
PutMetricDataRequest()()()()
Initializes a new instance of the PutMetricDataRequest class

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.)
MetricData
A list of data describing the metric.

Namespace
The namespace for the metric data.
Note:
You cannot specify a namespace that begins with "AWS/". Namespaces that begin with "AWS/" are reserved for other Amazon Web Services products that send metrics to Amazon CloudWatch.

Constraints:

Length
1 - 255
Pattern
[^:].*


ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithMetricData(array<MetricDatum>[]()[][]) Obsolete.
Adds elements to the MetricData collection

WithMetricData(IEnumerable<(Of <<'(MetricDatum>)>>)) Obsolete.
Adds elements to the MetricData collection

WithNamespace(String) Obsolete.
Sets the Namespace property

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 PutMetricDataRequest
See Also

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