Sha256: e22ac0be8858a29370834531441d77107d1b3ace8a99df617618e202b19ad087

Contents?: true

Size: 617 Bytes

Versions: 14

Compression:

Stored size: 617 Bytes

Contents

# Update a downtime returns "OK" response

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

# there is a valid "downtime_v2" in the system
DOWNTIME_V2_DATA_ID = ENV["DOWNTIME_V2_DATA_ID"]

body = DatadogAPIClient::V2::DowntimeUpdateRequest.new({
  data: DatadogAPIClient::V2::DowntimeUpdateRequestData.new({
    attributes: DatadogAPIClient::V2::DowntimeUpdateRequestAttributes.new({
      message: "light speed",
    }),
    id: DOWNTIME_V2_DATA_ID,
    type: DatadogAPIClient::V2::DowntimeResourceType::DOWNTIME,
  }),
})
p api_instance.update_downtime(DOWNTIME_V2_DATA_ID, body)

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
datadog_api_client-2.28.1 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.27.1 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.26.1 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.26.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.25.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.24.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.22.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.21.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.20.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.19.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.18.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.17.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.16.0 examples/v2/downtimes/UpdateDowntime.rb
datadog_api_client-2.15.0 examples/v2/downtimes/UpdateDowntime.rb