Packagecom.amazonaws.services.cloudwatch.model
Classpublic class PutMetricDataRequest
InheritancePutMetricDataRequest Inheritance AmazonWebServiceRequest Inheritance Object

Language Version : ActionScript 3.0
Product Version : Flex 4
Since : July 12. 2011
Runtime Versions : Flash Player 10.1, AIR 2.5

Container for the parameters to the com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.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.

NOTE: 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.

See also

com.amazonaws.services.cloudwatch.AmazonCloudWatchClient.putMetricData()


Public Methods
 MethodDefined By
  
Default C'tor.
PutMetricDataRequest
  
A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum instances) describing the metric.
PutMetricDataRequest
  
getNamespace():String
The namespace for the metric data.
PutMetricDataRequest
  
setMetricData(metricData:Array):void
A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum) instances describing the metric.
PutMetricDataRequest
  
setNamespace(namespace:String):void
The namespace for the metric data.
PutMetricDataRequest
  
toString():String
Returns a string representation of this object; useful for testing and debugging.
PutMetricDataRequest
  
A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum instances) describing the metric.
PutMetricDataRequest
  
The namespace for the metric data.
PutMetricDataRequest
Constructor Detail
PutMetricDataRequest()Constructor
public function PutMetricDataRequest()

Default C'tor.

Method Detail
getMetricData()method
public function getMetricData():Array

A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum instances) describing the metric.

Returns
Array — A list of data describing the metric.
getNamespace()method 
public function getNamespace():String

The namespace for the metric data.

Length: 1 - 255 Pattern: [^:].

Returns
String — The namespace of the metric.
setMetricData()method 
public function setMetricData(metricData:Array):void

A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum) instances describing the metric.

Parameters

metricData:Array — A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum instances) describing the metric.

setNamespace()method 
public function setNamespace(namespace:String):void

The namespace for the metric data.

Length: 1 - 255 Pattern: [^:].

Parameters

namespace:String — The namespace for the metric data.

toString()method 
public function toString():String

Returns a string representation of this object; useful for testing and debugging.

Returns
String — A string representation of this object.
withMetricData()method 
public function withMetricData(metricData:Array):PutMetricDataRequest

A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum instances) describing the metric.

Parameters

metricData:Array — A list of data (com.amazonaws.services.cloudwatch.model.MetricDatum instances) describing the metric.

Returns
PutMetricDataRequest — A reference to this updated object so that method calls can be chained together.
withNamespace()method 
public function withNamespace(namespace:String):PutMetricDataRequest

The namespace for the metric data. Returns a reference to this object so that method calls can be chained together.

Length: 1 - 255 Pattern: [^:].

Parameters

namespace:String — The namespace for the metric data.

Returns
PutMetricDataRequest — A reference to this updated object so that method calls can be chained together.