Method: Dogapi::V1::MonitorService#schedule_downtime

Defined in:
lib/dogapi/v1/monitor.rb

#schedule_downtime(scope, options = {}) ⇒ Object

DOWNTIMES



124
125
126
127
128
129
130
# File 'lib/dogapi/v1/monitor.rb', line 124

def schedule_downtime(scope, options = {})
  body = {
    'scope' => scope
  }.merge options

  request(Net::HTTP::Post, "/api/#{API_VERSION}/downtime", nil, body, true)
end