public class PutMetricDataRequest extends AmazonWebServiceRequest implements Serializable
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.
NOOP
Constructor and Description |
---|
PutMetricDataRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
List<MetricDatum> |
getMetricData()
A list of data describing the metric.
|
String |
getNamespace()
The namespace for the metric data.
|
int |
hashCode() |
void |
setMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
|
void |
setNamespace(String namespace)
The namespace for the metric data.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricDataRequest |
withMetricData(Collection<MetricDatum> metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withMetricData(MetricDatum... metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withNamespace(String namespace)
The namespace for the metric data.
|
copyBaseTo, copyPrivateRequestParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public String getNamespace()
Constraints:
Length: 1 - 255
Pattern: [^:].*
public void setNamespace(String namespace)
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace for the metric data.public PutMetricDataRequest withNamespace(String namespace)
Returns a reference to this object so that method calls can be chained together.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace for the metric data.public List<MetricDatum> getMetricData()
public void setMetricData(Collection<MetricDatum> metricData)
metricData
- A list of data describing the metric.public PutMetricDataRequest withMetricData(MetricDatum... metricData)
Returns a reference to this object so that method calls can be chained together.
metricData
- A list of data describing the metric.public PutMetricDataRequest withMetricData(Collection<MetricDatum> metricData)
Returns a reference to this object so that method calls can be chained together.
metricData
- A list of data describing the metric.public String toString()
toString
in class Object
Object.toString()
Copyright © 2014. All rights reserved.