Sha256: 0c3bcc5a4629d009cd4a8d459216cfdc4dc9d0e2c4dda1b3d1ca5276c684dfea

Contents?: true

Size: 842 Bytes

Versions: 23

Compression:

Stored size: 842 Bytes

Contents

module Fog
  module AWS
    class CloudWatch
      class Real

        require 'fog/aws/parsers/cloud_watch/delete_alarms'

        # Delete a list of alarms
        # ==== Options
        # * AlarmNames<~Array>: A list of alarms to be deleted
        # 
        # ==== Returns
        # * response<~Excon::Response>:
        #
        # ==== See Also
        # http://docs.amazonwebservices.com/AmazonCloudWatch/latest/APIReference/index.html?API_DeleteAlarms.html
        #

        def delete_alarms(alarm_names)
          options = {}
          options.merge!(AWS.indexed_param('AlarmNames.member.%d', [*alarm_names]))
          request({
              'Action'    => 'DeleteAlarms',
              :parser     => Fog::Parsers::AWS::CloudWatch::DeleteAlarms.new
            }.merge(options))
        end
      end       
    end
  end
end

Version data entries

23 entries across 23 versions & 7 rubygems

Version Path
fog-1.4.0 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
michiels-fog-1.3.1 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
fog-1.3.1 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
fog-1.3.0 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
fog-1.2.0 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
ktheory-fog-1.1.2 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
fog-1.1.2 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
fog_tractical-1.1.4 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
fog_tractical-1.1.3 lib/fog/aws/requests/cloud_watch/delete_alarms.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/aws/requests/cloud_watch/delete_alarms.rb
fog-1.1.1 lib/fog/aws/requests/cloud_watch/delete_alarms.rb