class Dogapi::V1::ServiceCheckService
Constants
- API_VERSION
Public Instance Methods
service_check(check, host, status, options = {})
click to toggle source
# File lib/dogapi/v1/service_check.rb 12 def service_check(check, host, status, options = {}) 13 body = { 14 'check' => check, 15 'host_name' => host, 16 'status' => status 17 }.merge options 18 19 request(Net::HTTP::Post, "/api/#{API_VERSION}/check_run", nil, body, true) 20 end