Sha256: 8da737af91fac573549e82e2ad2d6d59ffe9a012436499ac17d87e4c206c142e

Contents?: true

Size: 526 Bytes

Versions: 1

Compression:

Stored size: 526 Bytes

Contents

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::ServiceChecksAPI.new
body = [DatadogAPIClient::V1::ServiceCheck.new({ check: "app.ok", host_name: "app.host1", status: DatadogAPIClient::V1::ServiceCheckStatus::OK, tags: ["tags_example"] })] # Array<ServiceCheck> | Service Check request body.

begin
  # Submit a Service Check
  result = api_instance.submit_service_check(body)
  p result
rescue DatadogAPIClient::V1::APIError => e
  puts "Error when calling ServiceChecksAPI->submit_service_check: #{e}"
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-1.7.0 examples/generated/v1/service-checks/SubmitServiceCheck.rb