Sha256: b25a54dfb3373e01c396a6186fd70311cd6f42064a04f8d76de2d035e2788abd

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 Bytes

Contents

# Update a RUM application returns "OK" response

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

body = DatadogAPIClient::V2::RUMApplicationUpdateRequest.new({
  data: DatadogAPIClient::V2::RUMApplicationUpdate.new({
    attributes: DatadogAPIClient::V2::RUMApplicationUpdateAttributes.new({
      name: "updated_name_for_my_existing_rum_application",
      type: "browser",
    }),
    id: "abcd1234-0000-0000-abcd-1234abcd5678",
    type: DatadogAPIClient::V2::RUMApplicationUpdateType::RUM_APPLICATION_UPDATE,
  }),
})
p api_instance.update_rum_application("id", body)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
datadog_api_client-2.2.0 examples/v2/rum/UpdateRUMApplication.rb
datadog_api_client-2.1.0 examples/v2/rum/UpdateRUMApplication.rb