Sha256: 80a42ca1f2d4c45e743c39b18b59570e0c280dba1d19fb4581088e96e3ee8391

Contents?: true

Size: 692 Bytes

Versions: 20

Compression:

Stored size: 692 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,
  notify_end_states: [
    DatadogAPIClient::V1::NotifyEndState::ALERT,
    DatadogAPIClient::V1::NotifyEndState::NO_DATA,
    DatadogAPIClient::V1::NotifyEndState::WARN,
  ],
  notify_end_types: [
    DatadogAPIClient::V1::NotifyEndType::CANCELED,
    DatadogAPIClient::V1::NotifyEndType::EXPIRED,
  ],
})
p api_instance.update_downtime(DOWNTIME_ID.to_i, body)

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
datadog_api_client-2.30.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.29.1 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.28.1 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.27.1 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.26.1 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.26.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.25.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.24.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.22.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.21.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.20.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.19.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.18.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.17.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.16.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.15.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.14.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.13.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.12.0 examples/v1/downtimes/UpdateDowntime.rb
datadog_api_client-2.11.0 examples/v1/downtimes/UpdateDowntime.rb