Sha256: 8201feda1f4aecf1d8c47ac7a388a86dc637d2dc734154289510c6687db62d9d

Contents?: true

Size: 385 Bytes

Versions: 4

Compression:

Stored size: 385 Bytes

Contents

module Fog
  module Rackspace
    class Monitoring
      class Real

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

Version data entries

4 entries across 4 versions & 3 rubygems

Version Path
fog-maestrodev-1.15.0.20130829165835 lib/fog/rackspace/requests/monitoring/create_alarm.rb
fog-1.15.0 lib/fog/rackspace/requests/monitoring/create_alarm.rb
gapinc-fog-1.14.0 lib/fog/rackspace/requests/monitoring/create_alarm.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/rackspace/requests/monitoring/create_alarm.rb