1
0
Fork 0
mirror of https://github.com/fog/fog-aws.git synced 2022-11-09 13:50:52 -05:00
fog--fog-aws/lib/fog/aws/models/cloud_watch/alarm_histories.rb
Paulo Henrique Lopes Ribeiro 722bbdfa45 Remove unecessary requires
2015-04-06 11:23:35 -03:00

16 lines
439 B
Ruby

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 = service.describe_alarm_history(conditions).body['DescribeAlarmHistoryResult']['AlarmHistoryItems']
load(data) # data is an array of attribute hashes
end
end
end
end
end