Sha256: 17148984b75b68736b2c154957d65e36918580789f7582839558143edcb8b3f1

Contents?: true

Size: 387 Bytes

Versions: 7

Compression:

Stored size: 387 Bytes

Contents

module Fog
  module Monitoring
    class Rackspace
      class Real

        def create_alarm(entity_id, options = {})
          data = options.dup
          request(
            :body     => JSON.generate(data),
            :expects  => [201],
            :method   => 'POST',
            :path     => "entities/#{entity_id}/alarms"
          )
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
rackspace-monitoring-0.2.6 lib/rackspace-monitoring/monitoring/requests/create_alarm.rb
rackspace-monitoring-0.2.5 lib/rackspace-monitoring/monitoring/requests/create_alarm.rb
rackspace-monitoring-0.2.4 lib/rackspace-monitoring/monitoring/requests/create_alarm.rb
rackspace-monitoring-0.2.3 lib/rackspace-monitoring/monitoring/requests/create_alarm.rb
rackspace-monitoring-0.2.2 lib/rackspace-monitoring/monitoring/requests/create_alarm.rb
rackspace-monitoring-0.2.1 lib/rackspace-monitoring/monitoring/requests/create_alarm.rb
rackspace-monitoring-0.2.0 lib/rackspace-monitoring/monitoring/requests/create_alarm.rb