Sha256: 5dec94f0b457076e61ceb3e1d55a46af802020b1eac63bf0588785369b33ff15

Contents?: true

Size: 641 Bytes

Versions: 1

Compression:

Stored size: 641 Bytes

Contents

# Unless explicitly stated otherwise all files in this repository are licensed under the BSD-3-Clause License.
# This product includes software developed at Datadog (https://www.datadoghq.com/).
# Copyright 2011-Present Datadog, Inc.

module Dogapi
  class V1

    class ServiceCheckService < Dogapi::APIService

      API_VERSION = 'v1'

      def service_check(check, host, status, options = {})
        body = {
          'check' => check,
          'host_name' => host,
          'status' => status
        }.merge options

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

    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dogapi-1.45.0 lib/dogapi/v1/service_check.rb