class Amazonite::CloudWatch::Datapoint

Overview

Encapsulates the statistical data that CloudWatch computes from metric data.

Included Modules

Defined in:

cloudwatch/datapoint.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(timestamp : Time | Nil = nil, sample_count : Float64 | Nil = nil, average : Float64 | Nil = nil, sum : Float64 | Nil = nil, minimum : Float64 | Nil = nil, maximum : Float64 | Nil = nil, unit : StandardUnit | Nil = nil, extended_statistics : Hash(String, Float64) | Nil = nil) #

[View source]

Instance Method Detail

def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


def average : Float64 | Nil #

The average of the metric values that correspond to the data point.


[View source]
def average=(average : Float64 | Nil) #

The average of the metric values that correspond to the data point.


[View source]
def extended_statistics : Hash(String, Float64) | Nil #

The percentile statistic for the data point.


[View source]
def extended_statistics=(extended_statistics : Hash(String, Float64) | Nil) #

The percentile statistic for the data point.


[View source]
def hash(hasher) #
Description copied from class Reference

See Object#hash(hasher)


def maximum : Float64 | Nil #

The maximum metric value for the data point.


[View source]
def maximum=(maximum : Float64 | Nil) #

The maximum metric value for the data point.


[View source]
def minimum : Float64 | Nil #

The minimum metric value for the data point.


[View source]
def minimum=(minimum : Float64 | Nil) #

The minimum metric value for the data point.


[View source]
def sample_count : Float64 | Nil #

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


[View source]
def sample_count=(sample_count : Float64 | Nil) #

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


[View source]
def sum : Float64 | Nil #

The sum of the metric values for the data point.


[View source]
def sum=(sum : Float64 | Nil) #

The sum of the metric values for the data point.


[View source]
def timestamp : Time | Nil #

The time stamp used for the data point.


[View source]
def timestamp=(timestamp : Time | Nil) #

The time stamp used for the data point.


[View source]
def unit : StandardUnit | Nil #

The standard unit for the data point.


[View source]
def unit=(unit : StandardUnit | Nil) #

The standard unit for the data point.


[View source]
def validate! : Nil #

[View source]