class AWS::CloudWatch

Public Instance Methods

alarm_history_items() click to toggle source

@return [AlarmHistoryItemCollection]

# File lib/aws/cloud_watch.rb, line 65
def alarm_history_items
  AlarmHistoryItemCollection.new(:config => config)
end
alarms() click to toggle source

@return [AlarmCollection]

# File lib/aws/cloud_watch.rb, line 60
def alarms
  AlarmCollection.new(:config => config)
end
metrics(options = {}) click to toggle source

@return [MetricCollection]

# File lib/aws/cloud_watch.rb, line 70
def metrics options = {}
  MetricCollection.new(options.merge(:config => config))
end
put_metric_data(options = {}) click to toggle source

Puts data for a metric. The metric is created if it does not already exist.

cw.put_metric_data(
  :namespace => 'test/cli',
  :metric_data => [
    { :metric_name => 'sample', :value => 1 },
    { :metric_name => 'sample', :value => 2 },
    { :metric_name => 'sample', :value => 3 },
    { :metric_name => 'sample', :value => 4 },
    { :metric_name => 'sample', :value => 5 },
  ]
)

@param [Hash] options @see Client#put_metric_data @return [nil]

# File lib/aws/cloud_watch.rb, line 54
def put_metric_data options = {}
  client.put_metric_data(options)
  nil
end