Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
308 changes: 0 additions & 308 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80103,153 +80103,6 @@ components:
$ref: "#/components/schemas/MetricAssetResponseIncluded"
type: array
type: object
MetricBulkConfigureTagsType:
default: metric_bulk_configure_tags
description: The metric bulk configure tags resource.
enum:
- metric_bulk_configure_tags
example: metric_bulk_configure_tags
type: string
x-enum-varnames:
- BULK_MANAGE_TAGS
MetricBulkTagConfigCreate:
description: Request object to bulk configure tags for metrics matching the given prefix.
properties:
attributes:
$ref: "#/components/schemas/MetricBulkTagConfigCreateAttributes"
id:
$ref: "#/components/schemas/MetricBulkTagConfigNamePrefix"
type:
$ref: "#/components/schemas/MetricBulkConfigureTagsType"
required:
- id
- type
type: object
MetricBulkTagConfigCreateAttributes:
description: Optional parameters for bulk creating metric tag configurations.
properties:
emails:
$ref: "#/components/schemas/MetricBulkTagConfigEmailList"
exclude_tags_mode:
description: |-
When set to true, the configuration will exclude the configured tags and include any other submitted tags.
When set to false, the configuration will include the configured tags and exclude any other submitted tags.
Defaults to false.
type: boolean
include_actively_queried_tags_window:
description: |-
When provided, all tags that have been actively queried are
configured (and, therefore, remain queryable) for each metric that
matches the given prefix. Minimum value is 1 second, and maximum
value is 7,776,000 seconds (90 days).
format: double
maximum: 7776000
minimum: 1
type: number
override_existing_configurations:
description: |-
When set to true, the configuration overrides any existing
configurations for the given metric with the new set of tags in this
configuration request. If false, old configurations are kept and
are merged with the set of tags in this configuration request.
Defaults to true.
type: boolean
tags:
$ref: "#/components/schemas/MetricBulkTagConfigTagNameList"
type: object
MetricBulkTagConfigCreateRequest:
description: Wrapper object for a single bulk tag configuration request.
properties:
data:
$ref: "#/components/schemas/MetricBulkTagConfigCreate"
required:
- data
type: object
MetricBulkTagConfigDelete:
description: Request object to bulk delete all tag configurations for metrics matching the given prefix.
properties:
attributes:
$ref: "#/components/schemas/MetricBulkTagConfigDeleteAttributes"
id:
$ref: "#/components/schemas/MetricBulkTagConfigNamePrefix"
type:
$ref: "#/components/schemas/MetricBulkConfigureTagsType"
required:
- id
- type
type: object
MetricBulkTagConfigDeleteAttributes:
description: Optional parameters for bulk deleting metric tag configurations.
properties:
emails:
$ref: "#/components/schemas/MetricBulkTagConfigEmailList"
type: object
MetricBulkTagConfigDeleteRequest:
description: Wrapper object for a single bulk tag deletion request.
properties:
data:
$ref: "#/components/schemas/MetricBulkTagConfigDelete"
required:
- data
type: object
MetricBulkTagConfigEmailList:
description: A list of account emails to notify when the configuration is applied.
example: ["sue@example.com", "bob@example.com"]
items:
description: An email address.
type: string
type: array
MetricBulkTagConfigNamePrefix:
description: A text prefix to match against metric names.
example: "kafka.lag"
type: string
MetricBulkTagConfigResponse:
description: Wrapper for a single bulk tag configuration status response.
properties:
data:
$ref: "#/components/schemas/MetricBulkTagConfigStatus"
type: object
MetricBulkTagConfigStatus:
description: |-
The status of a request to bulk configure metric tags.
It contains the fields from the original request for reference.
properties:
attributes:
$ref: "#/components/schemas/MetricBulkTagConfigStatusAttributes"
id:
$ref: "#/components/schemas/MetricBulkTagConfigNamePrefix"
type:
$ref: "#/components/schemas/MetricBulkConfigureTagsType"
required:
- id
- type
type: object
MetricBulkTagConfigStatusAttributes:
description: Optional attributes for the status of a bulk tag configuration request.
properties:
emails:
$ref: "#/components/schemas/MetricBulkTagConfigEmailList"
exclude_tags_mode:
description: |-
When set to true, the configuration will exclude the configured tags and include any other submitted tags.
When set to false, the configuration will include the configured tags and exclude any other submitted tags.
type: boolean
status:
description: The status of the request.
example: "Accepted"
type: string
tags:
$ref: "#/components/schemas/MetricBulkTagConfigTagNameList"
type: object
MetricBulkTagConfigTagNameList:
description: A list of tag names to apply to the configuration.
example: ["host", "pod_name", "is_shadow"]
items:
description: A metric tag name.
maxLength: 200
pattern: ^[A-Za-z][A-Za-z0-9\.\-\_:\/]*$
type: string
type: array
MetricContentEncoding:
default: deflate
description: HTTP header used to compress the media-type.
Expand Down Expand Up @@ -202025,167 +201878,6 @@ paths:
operator: OR
permissions:
- metrics_read
/api/v2/metrics/config/bulk-tags:
delete:
deprecated: true
description: |-
**Note**: This endpoint is deprecated. Use [Tag Indexing Rules](/api/latest/metrics/#create-a-tag-indexing-rule) (`POST /api/v2/metrics/tag-indexing-rules`) instead.

Delete all custom lists of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics.
Metrics are selected by passing a metric name prefix.
Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app.
Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
operationId: DeleteBulkTagsMetricsConfiguration
requestBody:
content:
application/json:
examples:
default:
value:
data:
attributes:
emails:
- sue@example.com
- bob@example.com
id: kafka.lag
type: metric_bulk_configure_tags
schema:
$ref: "#/components/schemas/MetricBulkTagConfigDeleteRequest"
required: true
responses:
"202":
content:
application/json:
examples:
default:
value:
data:
attributes:
emails:
- test@example.com
status: Accepted
id: kafka.lag
type: metric_bulk_configure_tags
schema:
$ref: "#/components/schemas/MetricBulkTagConfigResponse"
description: Accepted
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Not Found
"429":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Too Many Requests
summary: Delete tags for multiple metrics
tags:
- Metrics
x-codegen-request-body-name: body
"x-permission":
operator: OR
permissions:
- metric_tags_write
x-sunset: "2026-11-01"
post:
deprecated: true
description: |-
**Note**: This endpoint is deprecated. Use [Tag Indexing Rules](/api/latest/metrics/#create-a-tag-indexing-rule) (`POST /api/v2/metrics/tag-indexing-rules`) instead.

Create and define a list of queryable tag keys for a set of existing count, gauge, rate, and distribution metrics.
Metrics are selected by passing a metric name prefix. Use the Delete method of this API path to remove tag configurations.
Results can be sent to a set of account email addresses, just like the same operation in the Datadog web app.
If multiple calls include the same metric, the last configuration applied (not by submit order) is used, do not
expect deterministic ordering of concurrent calls. The `exclude_tags_mode` value will set all metrics that match the prefix to
the same exclusion state, metric tag configurations do not support mixed inclusion and exclusion for tags on the same metric.
Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
operationId: CreateBulkTagsMetricsConfiguration
requestBody:
content:
application/json:
examples:
default:
value:
data:
attributes:
emails:
- sue@example.com
- bob@example.com
tags:
- host
- pod_name
- is_shadow
id: kafka.lag
type: metric_bulk_configure_tags
schema:
$ref: "#/components/schemas/MetricBulkTagConfigCreateRequest"
required: true
responses:
"202":
content:
application/json:
examples:
default:
value:
data:
attributes:
emails:
- test@example.com
tags:
- host
id: kafka.lag
type: metric_bulk_configure_tags
schema:
$ref: "#/components/schemas/MetricBulkTagConfigResponse"
description: Accepted
"400":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Bad Request
"403":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Forbidden
"404":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Not Found
"429":
content:
application/json:
schema:
$ref: "#/components/schemas/APIErrorResponse"
description: Too Many Requests
summary: Configure tags for multiple metrics
tags:
- Metrics
x-codegen-request-body-name: body
"x-permission":
operator: OR
permissions:
- metric_tags_write
x-sunset: "2026-11-01"
/api/v2/metrics/derived-metrics:
post:
description: |-
Expand Down
44 changes: 0 additions & 44 deletions examples/v2/metrics/CreateBulkTagsMetricsConfiguration.py

This file was deleted.

Loading
Loading