1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/aws/models/cloud_watch/alarm_histories.rb

19 lines
473 B
Ruby
Raw Normal View History

require 'fog/core/collection'
require 'fog/aws/models/cloud_watch/alarm_history'
module Fog
module AWS
class CloudWatch
class AlarmHistories < Fog::Collection
model Fog::AWS::CloudWatch::AlarmHistory
def all(conditions={})
data = connection.describe_alarm_history(conditions).body['DescribeAlarmHistoryResult']['AlarmHistoryItems']
load(data) # data is an array of attribute hashes
end
end
end
end
2011-10-03 18:34:59 -04:00
end