@return [AlarmHistoryItemCollection]
# File lib/aws/cloud_watch.rb, line 65 def alarm_history_items AlarmHistoryItemCollection.new(:config => config) end
@return [AlarmCollection]
# File lib/aws/cloud_watch.rb, line 60 def alarms AlarmCollection.new(:config => config) end
@return [MetricCollection]
# File lib/aws/cloud_watch.rb, line 70 def metrics options = {} MetricCollection.new(options.merge(:config => config)) end
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