Sha256: e44d67cb0b5c28515dbff95282ead8cf7b794b6a500031a6fdb75f707daf93dc

Contents?: true

Size: 473 Bytes

Versions: 35

Compression:

Stored size: 473 Bytes

Contents

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
end

Version data entries

35 entries across 35 versions & 13 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-nirvanix-1.8.1 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-parser-fix-1.6.1 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-test-again-1.6.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-parser-fix-1.6.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-sgonyea-1.8.1 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-1.8.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-1.7.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-1.6.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-1.5.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-1.4.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/cloud_watch/alarm_histories.rb
michiels-fog-1.3.1 lib/fog/aws/models/cloud_watch/alarm_histories.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/models/cloud_watch/alarm_histories.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-1.3.1 lib/fog/aws/models/cloud_watch/alarm_histories.rb
fog-1.3.0 lib/fog/aws/models/cloud_watch/alarm_histories.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/models/cloud_watch/alarm_histories.rb