Sha256: 4006a548bc833c228cff488368b551ed16dc9a3580ac4a9616bda2451884345f

Contents?: true

Size: 805 Bytes

Versions: 17

Compression:

Stored size: 805 Bytes

Contents

# Add resource to Confluent account returns "OK" response

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

# there is a valid "confluent_account" in the system
CONFLUENT_ACCOUNT_DATA_ID = ENV["CONFLUENT_ACCOUNT_DATA_ID"]

body = DatadogAPIClient::V2::ConfluentResourceRequest.new({
  data: DatadogAPIClient::V2::ConfluentResourceRequestData.new({
    attributes: DatadogAPIClient::V2::ConfluentResourceRequestAttributes.new({
      resource_type: "kafka",
      tags: [
        "myTag",
        "myTag2:myValue",
      ],
      enable_custom_metrics: false,
    }),
    id: "exampleconfluentcloud",
    type: DatadogAPIClient::V2::ConfluentResourceType::CONFLUENT_CLOUD_RESOURCES,
  }),
})
p api_instance.create_confluent_resource(CONFLUENT_ACCOUNT_DATA_ID, body)

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
datadog_api_client-2.29.1 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.28.1 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.27.1 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.26.1 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.26.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.25.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.24.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.22.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.21.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.20.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.19.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.18.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.17.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.16.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.15.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.14.0 examples/v2/confluent-cloud/CreateConfluentResource.rb
datadog_api_client-2.13.0 examples/v2/confluent-cloud/CreateConfluentResource.rb