Class: Fog::AWS::CloudWatch::AlarmHistories

Inherits:
Collection
  • Object
show all
Defined in:
lib/fog/aws/models/cloud_watch/alarm_histories.rb

Instance Method Summary collapse

Instance Method Details

#all(conditions = {}) ⇒ Object



9
10
11
12
# File 'lib/fog/aws/models/cloud_watch/alarm_histories.rb', line 9

def all(conditions={})
  data = service.describe_alarm_history(conditions).body['DescribeAlarmHistoryResult']['AlarmHistoryItems']
  load(data) # data is an array of attribute hashes
end