public class PutMetricDataRequest extends AmazonWebServiceRequest implements java.io.Serializable
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. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to the ListMetrics action.
Each PutMetricData
request is limited to 8 KB in size for HTTP
GET requests and is limited to 40 KB in size for HTTP POST requests.
Value
parameter accepts numbers of type
Double
, Amazon CloudWatch rejects values that are either too
small or too large. Values must be in the range of 8.515920e-109 to
1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special
values (e.g., NaN, +Infinity, -Infinity) are not supported.
Data that is timestamped 24 hours or more in the past may take in excess of
48 hours to become available from submission time using
GetMetricStatistics
.
Constructor and Description |
---|
PutMetricDataRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.lang.String getNamespace()
The namespace for the metric data.
Constraints:
Length: 1 - 255
Pattern: [^:].*
The namespace for the metric data.
public void setNamespace(java.lang.String namespace)
The namespace for the metric data.
Constraints:
Length: 1 - 255
Pattern: [^:].*
namespace
- The namespace for the metric data.
public PutMetricDataRequest withNamespace(java.lang.String namespace)
The namespace for the metric data.
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()
A list of data describing the metric.
A list of data describing the metric.
public void setMetricData(java.util.Collection<MetricDatum> metricData)
A list of data describing the metric.
metricData
- A list of data describing the metric.
public PutMetricDataRequest withMetricData(MetricDatum... metricData)
A list of data describing the metric.
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)
A list of data describing the metric.
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
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.