Sha256: fa8e7f3a73e96eaf9e8561e7e5256cfb4d317a96aec99ec6f066a654723851b7

Contents?: true

Size: 388 Bytes

Versions: 1

Compression:

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
datadog_api_client-2.10.0 examples/v1/downtimes/UpdateDowntime.rb