Sha256: ac8db44c9f821c72933dc4162f1bf85985fb9d55798e91070c460a670eb9855a
Contents?: true
Size: 695 Bytes
Versions: 1
Compression:
Stored size: 695 Bytes
Contents
# Update App returns "OK" response require "datadog_api_client" DatadogAPIClient.configure do |config| config.unstable_operations["v2.update_app".to_sym] = true end api_instance = DatadogAPIClient::V2::AppsAPI.new # there is a valid "app" in the system APP_DATA_ID = ENV["APP_DATA_ID"] body = DatadogAPIClient::V2::UpdateAppRequest.new({ data: DatadogAPIClient::V2::UpdateAppRequestData.new({ attributes: DatadogAPIClient::V2::UpdateAppRequestDataAttributes.new({ name: "Updated Name", root_instance_name: "grid0", }), id: APP_DATA_ID, type: DatadogAPIClient::V2::UpdateAppRequestDataType::APPDEFINITIONS, }), }) p api_instance.update_app(APP_DATA_ID, body)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
datadog_api_client-2.29.1 | examples/v2/apps/UpdateApp.rb |