Skip to content

Commit 08d12f0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Adds exclude_tag_modes to PATCH metric tags (#1411)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 33a976e commit 08d12f0

File tree

4 files changed

+30
-6
lines changed

4 files changed

+30
-6
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2023-11-09 10:45:50.100089",
8-
"spec_repo_commit": "66a4cef6"
7+
"regenerated": "2023-11-09 22:07:37.183507",
8+
"spec_repo_commit": "893a406f"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2023-11-09 10:45:50.114929",
13-
"spec_repo_commit": "66a4cef6"
12+
"regenerated": "2023-11-09 22:07:37.197393",
13+
"spec_repo_commit": "893a406f"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10301,6 +10301,15 @@ components:
1030110301
properties:
1030210302
aggregations:
1030310303
$ref: '#/components/schemas/MetricCustomAggregations'
10304+
exclude_tags_mode:
10305+
description: 'When set to true, the configuration will exclude the configured
10306+
tags and include any other submitted tags.
10307+
10308+
When set to false, the configuration will include the configured tags
10309+
and exclude any other submitted tags.
10310+
10311+
Defaults to false. Requires `tags` property.'
10312+
type: boolean
1030410313
include_percentiles:
1030510314
description: 'Toggle to include/exclude percentiles for a distribution metric.
1030610315

@@ -24357,7 +24366,11 @@ paths:
2435724366
description: 'Update the tag configuration of a metric or percentile aggregations
2435824367
of a distribution metric or custom aggregations
2435924368

24360-
of a count, rate, or gauge metric.
24369+
of a count, rate, or gauge metric. By setting `exclude_tags_mode` to true
24370+
the behavior is changed
24371+
24372+
from an allow-list to a deny-list, and tags in the defined list will not be
24373+
queryable.
2436124374

2436224375
Can only be used with application keys from users with the `Manage Tags for
2436324376
Metrics` permission.'

packages/datadog-api-client-v2/apis/MetricsApi.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2117,7 +2117,8 @@ export class MetricsApi {
21172117

21182118
/**
21192119
* Update the tag configuration of a metric or percentile aggregations of a distribution metric or custom aggregations
2120-
* of a count, rate, or gauge metric.
2120+
* of a count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed
2121+
* from an allow-list to a deny-list, and tags in the defined list will not be queryable.
21212122
* Can only be used with application keys from users with the `Manage Tags for Metrics` permission.
21222123
* @param param The request object
21232124
*/

packages/datadog-api-client-v2/models/MetricTagConfigurationUpdateAttributes.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ export class MetricTagConfigurationUpdateAttributes {
3030
* Can only be applied to metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
3131
*/
3232
"aggregations"?: Array<MetricCustomAggregation>;
33+
/**
34+
* When set to true, the configuration will exclude the configured tags and include any other submitted tags.
35+
* When set to false, the configuration will include the configured tags and exclude any other submitted tags.
36+
* Defaults to false. Requires `tags` property.
37+
*/
38+
"excludeTagsMode"?: boolean;
3339
/**
3440
* Toggle to include/exclude percentiles for a distribution metric.
3541
* Defaults to false. Can only be applied to metrics that have a `metric_type` of `distribution`.
@@ -53,6 +59,10 @@ export class MetricTagConfigurationUpdateAttributes {
5359
baseName: "aggregations",
5460
type: "Array<MetricCustomAggregation>",
5561
},
62+
excludeTagsMode: {
63+
baseName: "exclude_tags_mode",
64+
type: "boolean",
65+
},
5666
includePercentiles: {
5767
baseName: "include_percentiles",
5868
type: "boolean",

0 commit comments

Comments
 (0)