Sha256: 73415912a6a644ffddc4dd2ae7543b2cb1ebbb7a572a96a00d77ceb8cf18a54e

Contents?: true

Size: 761 Bytes

Versions: 13

Compression:

Stored size: 761 Bytes

Contents

# Create a tag configuration returns "Created" response

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

body = DatadogAPIClient::V2::MetricTagConfigurationCreateRequest.new({
  data: DatadogAPIClient::V2::MetricTagConfigurationCreateData.new({
    type: DatadogAPIClient::V2::MetricTagConfigurationType::MANAGE_TAGS,
    id: "ExampleCreateatagconfigurationreturnsCreatedresponse",
    attributes: DatadogAPIClient::V2::MetricTagConfigurationCreateAttributes.new({
      tags: [
        "app",
        "datacenter",
      ],
      metric_type: DatadogAPIClient::V2::MetricTagConfigurationMetricTypes::GAUGE,
    }),
  }),
})
p api_instance.create_tag_configuration("ExampleCreateatagconfigurationreturnsCreatedresponse", body)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
datadog_api_client-2.9.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.8.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.7.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.6.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.5.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.4.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.3.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.2.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.1.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.0.2 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.0.1 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-2.0.0 examples/v2/metrics/CreateTagConfiguration.rb
datadog_api_client-1.11.0 examples/v2/metrics/CreateTagConfiguration.rb