Packagecom.amazonaws.services.cloudwatch.model
Classpublic class Datapoint
InheritanceDatapoint 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 Datapoint data type encapsulates the statistical data that Amazon CloudWatch computes from metric data.



Public Methods
 MethodDefined By
  
Default C'tor.
Datapoint
  
getAverage():Number
The average of metric values that correspond to the datapoint.
Datapoint
  
getMaximum():Number
The maximum of the metric value used for the datapoint.
Datapoint
  
getMinimum():Number
The minimum metric value used for the datapoint.
Datapoint
  
The number of metric values that contributed to the aggregate value of this datapoint.
Datapoint
  
getSum():Number
The sum of metric values used for the datapoint.
Datapoint
  
The time stamp used for the datapoint.
Datapoint
  
getUnit():String
The standard unit used for the datapoint.
Datapoint
  
setAverage(average:Number):void
The average of metric values that correspond to the datapoint.
Datapoint
  
setMaximum(maximum:Number):void
The maximum of the metric value used for the datapoint.
Datapoint
  
setMinimum(minimum:Number):void
The minimum metric value used for the datapoint.
Datapoint
  
setSampleCount(sampleCount:Number):void
The number of metric values that contributed to the aggregate value of this datapoint.
Datapoint
  
setSum(sum:Number):void
The sum of metric values used for the datapoint.
Datapoint
  
setTimestamp(timestamp:Date):void
The time stamp used for the datapoint.
Datapoint
  
setUnit(unit:String):void
The standard unit used for the datapoint.
Datapoint
  
toString():String
Returns a string representation of this object; useful for testing and debugging.
Datapoint
  
withAverage(average:Number):Datapoint
The average of metric values that correspond to the datapoint.
Datapoint
  
withMaximum(maximum:Number):Datapoint
The maximum of the metric value used for the datapoint.
Datapoint
  
withMinimum(minimum:Number):Datapoint
The minimum metric value used for the datapoint.
Datapoint
  
withSampleCount(sampleCount:Number):Datapoint
The number of metric values that contributed to the aggregate value of this datapoint.
Datapoint
  
withSum(sum:Number):Datapoint
The sum of metric values used for the datapoint.
Datapoint
  
withTimestamp(timestamp:Date):Datapoint
The time stamp used for the datapoint.
Datapoint
  
withUnit(unit:String):Datapoint
The standard unit used for the datapoint.
Datapoint
Constructor Detail
Datapoint()Constructor
public function Datapoint()

Default C'tor.

Method Detail
getAverage()method
public function getAverage():Number

The average of metric values that correspond to the datapoint.

Returns
Number — The average of metric values that correspond to the datapoint.
getMaximum()method 
public function getMaximum():Number

The maximum of the metric value used for the datapoint.

Returns
Number — The maximum of the metric value used for the datapoint.
getMinimum()method 
public function getMinimum():Number

The minimum metric value used for the datapoint.

Returns
Number — The minimum metric value used for the datapoint.
getSampleCount()method 
public function getSampleCount():Number

The number of metric values that contributed to the aggregate value of this datapoint.

Returns
Number — The number of metric values that contributed to the aggregate value of this datapoint.
getSum()method 
public function getSum():Number

The sum of metric values used for the datapoint.

Returns
Number — The sum of metric values used for the datapoint.
getTimestamp()method 
public function getTimestamp():Date

The time stamp used for the datapoint.

Returns
Date — The time stamp used for the datapoint.
getUnit()method 
public function getUnit():String

The standard unit used for the datapoint.

Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Returns
String — The standard unit used for the datapoint.

See also

com.amazonaws.services.cloudwatch.model.StandardUnitEnum
setAverage()method 
public function setAverage(average:Number):void

The average of metric values that correspond to the datapoint.

Parameters

average:Number — The average of metric values that correspond to the datapoint.

setMaximum()method 
public function setMaximum(maximum:Number):void

The maximum of the metric value used for the datapoint.

Parameters

maximum:Number — The maximum of the metric value used for the datapoint.

setMinimum()method 
public function setMinimum(minimum:Number):void

The minimum metric value used for the datapoint.

Parameters

minimum:Number — The minimum metric value used for the datapoint.

setSampleCount()method 
public function setSampleCount(sampleCount:Number):void

The number of metric values that contributed to the aggregate value of this datapoint.

Parameters

sampleCount:Number — The number of metric values that contributed to the aggregate value of this datapoint.

setSum()method 
public function setSum(sum:Number):void

The sum of metric values used for the datapoint.

Parameters

sum:Number — The sum of metric values used for the datapoint.

setTimestamp()method 
public function setTimestamp(timestamp:Date):void

The time stamp used for the datapoint.

Parameters

timestamp:Date — The time stamp used for the datapoint.

setUnit()method 
public function setUnit(unit:String):void

The standard unit used for the datapoint.

Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Parameters

unit:String — The standard unit used for the datapoint.

See also

com.amazonaws.services.cloudwatch.model.StandardUnitEnum
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.
withAverage()method 
public function withAverage(average:Number):Datapoint

The average of metric values that correspond to the datapoint. Returns a reference to this object so that method calls can be chained together.

Parameters

average:Number — The average of metric values that correspond to the datapoint.

Returns
Datapoint — A reference to this updated object so that method calls can be chained together.
withMaximum()method 
public function withMaximum(maximum:Number):Datapoint

The maximum of the metric value used for the datapoint. Returns a reference to this object so that method calls can be chained together.

Parameters

maximum:Number — The maximum of the metric value used for the datapoint.

Returns
Datapoint — A reference to this updated object so that method calls can be chained together.
withMinimum()method 
public function withMinimum(minimum:Number):Datapoint

The minimum metric value used for the datapoint. Returns a reference to this object so that method calls can be chained together.

Parameters

minimum:Number — The minimum metric value used for the datapoint.

Returns
Datapoint — A reference to this updated object so that method calls can be chained together.
withSampleCount()method 
public function withSampleCount(sampleCount:Number):Datapoint

The number of metric values that contributed to the aggregate value of this datapoint. Returns a reference to this object so that method calls can be chained together.

Parameters

sampleCount:Number — The number of metric values that contributed to the aggregate value of this datapoint.

Returns
Datapoint — A reference to this updated object so that method calls can be chained together.
withSum()method 
public function withSum(sum:Number):Datapoint

The sum of metric values used for the datapoint. Returns a reference to this object so that method calls can be chained together.

Parameters

sum:Number — The sum of metric values used for the datapoint.

Returns
Datapoint — A reference to this updated object so that method calls can be chained together.
withTimestamp()method 
public function withTimestamp(timestamp:Date):Datapoint

The time stamp used for the datapoint. Returns a reference to this object so that method calls can be chained together.

Parameters

timestamp:Date — The time stamp used for the datapoint.

Returns
Datapoint — A reference to this updated object so that method calls can be chained together.
withUnit()method 
public function withUnit(unit:String):Datapoint

The standard unit used for the datapoint. Returns a reference to this object so that method calls can be chained together.

Allowed Values: Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Count, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second, None

Parameters

unit:String — The standard unit used for the datapoint.

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

See also

com.amazonaws.services.cloudwatch.model.StandardUnitEnum