Sha256: eb9a4c9386bc0d4c5d7ef884fe920dceec04101ab9f5e0dab1a3eabcc81d5676

Contents?: true

Size: 375 Bytes

Versions: 5

Compression:

Stored size: 375 Bytes

Contents

# Update a downtime returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V1::DowntimesAPI.new

# there is a valid "downtime" in the system
DOWNTIME_ID = ENV["DOWNTIME_ID"]

body = DatadogAPIClient::V1::Downtime.new({
  message: "Example-Update_a_downtime_returns_OK_response-updated",
})
p api_instance.update_downtime(DOWNTIME_ID.to_i, body)

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
datadog_api_client-1.9.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-1.8.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-1.7.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-1.6.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-1.5.0 examples/v1/downtimes/UpdateDowntime.rb