public class PutMetricDataRequest extends AmazonWebServiceRequest implements java.io.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.
| コンストラクタと説明 |
|---|
PutMetricDataRequest() |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.util.List<MetricDatum> |
getMetricData()
A list of data describing the metric.
|
java.lang.String |
getNamespace()
The namespace for the metric data.
|
int |
hashCode() |
void |
setMetricData(java.util.Collection<MetricDatum> metricData)
A list of data describing the metric.
|
void |
setNamespace(java.lang.String namespace)
The namespace for the metric data.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMetricDataRequest |
withMetricData(java.util.Collection<MetricDatum> metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withMetricData(MetricDatum... metricData)
A list of data describing the metric.
|
PutMetricDataRequest |
withNamespace(java.lang.String namespace)
The namespace for the metric data.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, setRequestCredentialspublic java.lang.String getNamespace()
Constraints:
Length: 1 - 255
Pattern: [^:].*
public void setNamespace(java.lang.String namespace)
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace - The namespace for the metric data.public PutMetricDataRequest withNamespace(java.lang.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 java.util.List<MetricDatum> getMetricData()
public void setMetricData(java.util.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(java.util.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 java.lang.String toString()
toString クラス内 java.lang.ObjectObject.toString()public int hashCode()
hashCode クラス内 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals クラス内 java.lang.Object