Sha256: 60ecc43e77a04556d893cdaa8adbe7808463826f933d06027903e11d6d3702e3

Contents?: true

Size: 387 Bytes

Versions: 7

Compression:

Stored size: 387 Bytes

Contents

module Fog
  module Monitoring
    class Rackspace
      class Real

        def create_check(entity_id, options = {})
          data = options.dup
          request(
            :body     => JSON.generate(data),
            :expects  => [201],
            :method   => 'POST',
            :path     => "entities/#{entity_id}/checks"
          )
        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_check.rb
rackspace-monitoring-0.2.5 lib/rackspace-monitoring/monitoring/requests/create_check.rb
rackspace-monitoring-0.2.4 lib/rackspace-monitoring/monitoring/requests/create_check.rb
rackspace-monitoring-0.2.3 lib/rackspace-monitoring/monitoring/requests/create_check.rb
rackspace-monitoring-0.2.2 lib/rackspace-monitoring/monitoring/requests/create_check.rb
rackspace-monitoring-0.2.1 lib/rackspace-monitoring/monitoring/requests/create_check.rb
rackspace-monitoring-0.2.0 lib/rackspace-monitoring/monitoring/requests/create_check.rb