Sha256: 9908e115f93816c8236c90e6726bce7bf73d1f6add4745cb852d69eaaecd19d1
Contents?: true
Size: 769 Bytes
Versions: 3
Compression:
Stored size: 769 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", ], }), id: "exampleconfluentcloud", type: DatadogAPIClient::V2::ConfluentResourceType::CONFLUENT_CLOUD_RESOURCES, }), }) p api_instance.create_confluent_resource(CONFLUENT_ACCOUNT_DATA_ID, body)
Version data entries
3 entries across 3 versions & 1 rubygems