class AWS::CloudWatch::MetricStatistics


@see Core::Collection
end
# datapoint is a hash
stats.each do |datapoint|
stats.label #=> ‘some-label’
:statistics => [‘Average’])
:end_time => Time.now,
:start_time => Time.now - 3600,
stats = metric.statistics(
metric = CloudWatch::Metric.new(‘my/namepace’, ‘metric-name’)
## Enumerating Statistics
This class is an enumerable collection of data points.
Statistics for a metric.

def _each_item options = {}

def _each_item options = {}
  datapoints.each do |point|
    yield(point)
  end
end

def initialize metric, label, datapoints

Parameters:
  • datapoints (Array) --
  • label (String) --
  • metric (Metric) --
def initialize metric, label, datapoints
  @metric = metric
  @label = label
  @datapoints = datapoints
end