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.
C# |
public class PutMetricDataRequest : AmazonWebServiceRequest
All Members | Constructors | Methods | Properties | ||
Icon | Member | Description | ||
---|---|---|---|---|
PutMetricDataRequest()()()() | Initializes a new instance of the PutMetricDataRequest class | |||
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.) | |||
MetricData |
A list of data describing the metric.
| |||
Namespace |
The namespace for the metric data.
Constraints: | |||
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
|
Object | ||
AmazonWebServiceRequest | ||
PutMetricDataRequest |