|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.amazonaws.AmazonWebServiceRequest
com.amazonaws.services.cloudwatch.model.PutMetricDataRequest
public class PutMetricDataRequest
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.
AmazonCloudWatch.putMetricData(PutMetricDataRequest)
Constructor Summary | |
---|---|
PutMetricDataRequest()
|
Method Summary | |
---|---|
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. |
Methods inherited from class com.amazonaws.AmazonWebServiceRequest |
---|
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, setDelegationToken, setRequestCredentials |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PutMetricDataRequest()
Method Detail |
---|
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()
public int hashCode()
hashCode
in class Object
public boolean equals(Object obj)
equals
in class Object
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |