Packagecom.amazonaws.services.cloudwatch.model
Classpublic class Metric
InheritanceMetric Inheritance Object

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

The Metric data type contains information about a specific metric. If you call ListMetrics, Amazon CloudWatch returns information contained by this data type.



Public Methods
 MethodDefined By
  
Default C'tor.
Metric
  
A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric.
Metric
  
getMetricName():String
The name of the metric.
Metric
  
getNamespace():String
The namespace of the metric.
Metric
  
setDimensions(dimensions:Array):void
A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric.
Metric
  
setMetricName(metricName:String):void
The name of the metric.
Metric
  
setNamespace(namespace:String):void
The namespace of the metric.
Metric
  
toString():String
Returns a string representation of this object; useful for testing and debugging.
Metric
  
withDimensions(dimensions:Array):Metric
A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric.
Metric
  
withMetricName(metricName:String):Metric
The name of the metric.
Metric
  
withNamespace(namespace:String):Metric
The namespace of the metric.
Metric
Constructor Detail
Metric()Constructor
public function Metric()

Default C'tor.

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

A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric.

Length: 0 - 10

Returns
Array — A list of dimensions associated with the metric.

See also

getMetricName()method 
public function getMetricName():String

The name of the metric.

Length: 1 - 255

Returns
String — The name of the metric.
getNamespace()method 
public function getNamespace():String

The namespace of the metric.

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

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

A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric.

Length: 0 - 10

Parameters

dimensions:Array — A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric.

See also

setMetricName()method 
public function setMetricName(metricName:String):void

The name of the metric.

Length: 1 - 255

Parameters

metricName:String — The name of the metric.

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

The namespace of the metric.

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

Parameters

namespace:String — The namespace of the metric.

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.
withDimensions()method 
public function withDimensions(dimensions:Array):Metric

A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric. Returns a reference to this object so that method calls can be chained together.

Length: 0 - 10

Parameters

dimensions:Array — A list of dimensions (com.amazonaws.services.cloudwatch.model.Dimension) associated with the metric.

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

See also

withMetricName()method 
public function withMetricName(metricName:String):Metric

The name of the metric. Returns a reference to this object so that method calls can be chained together.

Length: 1 - 255

Parameters

metricName:String — The name of the metric.

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

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

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

Parameters

namespace:String — The namespace of the metric.

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