Packagecom.amazonaws.services.cloudwatch
Interfacepublic interface AmazonCloudWatch extends flash.events.IEventDispatcher
Implementors AmazonCloudWatchClient

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

Interface for accessing AmazonCloudWatch. Amazon CloudWatch. This is the Amazon CloudWatch API Reference. This guide provides detailed information about Amazon CloudWatch actions, data types, parameters, and errors. For detailed information about Amazon CloudWatch features and their associated API calls, go to the Amazon CloudWatch Developer Guide.

Amazon CloudWatch is a web service that enables you to publish, monitor, and manage various metrics, as well as configure alarm actions based on data from metrics. For more information about this product go to http://aws.amazon.com/cloudwatch.



Public Methods
 MethodDefined By
  
getMetricStatistics(getMetricStatisticsRequest:GetMetricStatisticsRequest = null):void
Gets statistics for the specified metric.
AmazonCloudWatch
  
listMetrics(listMetricsRequest:ListMetricsRequest = null):void
Returns a list of valid metrics stored for the AWS account owner.
AmazonCloudWatch
  
putMetricData(putMetricDataRequest:PutMetricDataRequest):void
Publishes metric data points to Amazon CloudWatch.
AmazonCloudWatch
  
Removing all event listeners and releasing any resources that might be held open.
AmazonCloudWatch
Method Detail
getMetricStatistics()method
public function getMetricStatistics(getMetricStatisticsRequest:GetMetricStatisticsRequest = null):void

Gets statistics for the specified metric.

NOTE: The maximum number of data points returned from a single GetMetricStatistics request is 1,440. If a request is made that generates more than 1,440 data points, Amazon CloudWatch returns an error. In such a case, alter the request by narrowing the specified time range or increasing the specified period. Alternatively, make multiple requests across adjacent time ranges.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-minute granularity, Amazon CloudWatch aggregates data points with time stamps that fall within the same one-minute period. In such a case, the data points queried can greatly outnumber the data points returned.

NOTE: The maximum number of data points that can be queried is 50,850; whereas the maximum number of data points returned is 1,440.

The following examples show various statistics allowed by the data point query maximum of 50,850 when you call GetMetricStatistics on Amazon EC2 instances with detailed (one-minute) monitoring enabled:

Parameters

getMetricStatisticsRequest:GetMetricStatisticsRequest (default = null) — Container for the necessary parameters to execute the GetMetricStatistics service method on AmazonCloudWatch.

listMetrics()method 
public function listMetrics(listMetricsRequest:ListMetricsRequest = null):void

Returns a list of valid metrics stored for the AWS account owner. Returned metrics can be used with GetMetricStatistics to obtain statistical data for a given metric.

NOTE: Up to 500 results are returned for any one call. To retrieve further results, use returned NextToken values with subsequent ListMetrics operations.

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.

Parameters

listMetricsRequest:ListMetricsRequest (default = null) — - Container for the necessary parameters to execute the ListMetrics service method on AmazonCloudWatch. If set to null ALL available metrics will be returned.

putMetricData()method 
public function putMetricData(putMetricDataRequest:PutMetricDataRequest):void

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.

Parameters

putMetricDataRequest:PutMetricDataRequest — - Container for the necessary parameters to execute the PutMetricData service method on AmazonCloudWatch.

releaseResources()method 
public function releaseResources():void

Removing all event listeners and releasing any resources that might be held open.