Sha256: b0d6fdc3c70b47c834b5524ab462c31d40c1e25146ed408592419bdd1df77635

Contents?: true

Size: 417 Bytes

Versions: 14

Compression:

Stored size: 417 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",
  mute_first_recovery_notification: true,
})
p api_instance.update_downtime(DOWNTIME_ID.to_i, body)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
datadog_api_client-2.9.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.8.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.7.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.6.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.5.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.4.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.3.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.2.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.1.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.0.2 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.0.1 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.0.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-1.11.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-1.10.0 examples/v1/downtimes/UpdateDowntime.rb