Sha256: eb8839fa4c2d85b92ece7b891a2936948ca60a4aecc392243d2db4e1f52b630c

Contents?: true

Size: 817 Bytes

Versions: 17

Compression:

Stored size: 817 Bytes

Contents

# Configure tags for multiple metrics returns "Accepted" response

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

# there is a valid "user" in the system
USER_DATA_ATTRIBUTES_EMAIL = ENV["USER_DATA_ATTRIBUTES_EMAIL"]

body = DatadogAPIClient::V2::MetricBulkTagConfigCreateRequest.new({
  data: DatadogAPIClient::V2::MetricBulkTagConfigCreate.new({
    attributes: DatadogAPIClient::V2::MetricBulkTagConfigCreateAttributes.new({
      emails: [
        USER_DATA_ATTRIBUTES_EMAIL,
      ],
      tags: [
        "test",
        "exampleconfiguretagsformultiplemetricsreturnsacceptedresponse",
      ],
    }),
    id: "system.load.1",
    type: DatadogAPIClient::V2::MetricBulkConfigureTagsType::BULK_MANAGE_TAGS,
  }),
})
p api_instance.create_bulk_tags_metrics_configuration(body)

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
datadog_api_client-2.9.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.8.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.7.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.6.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.5.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.4.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.3.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.2.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.1.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.0.2 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.0.1 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-2.0.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-1.11.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-1.10.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-1.9.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-1.8.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb
datadog_api_client-1.7.0 examples/v2/metrics/CreateBulkTagsMetricsConfiguration.rb