Skip to content

Commit cc911f6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Adds override_existing_configurations and include_actively_queried_configurations to bulk tag config endpoint (#2410)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 1843384 commit cc911f6

File tree

3 files changed

+57
-4
lines changed

3 files changed

+57
-4
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": "2025-02-14 15:03:51.274934",
8-
"spec_repo_commit": "a739b49f"
7+
"regenerated": "2025-02-18 20:22:46.542723",
8+
"spec_repo_commit": "c8707cdc"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-14 15:03:51.291086",
13-
"spec_repo_commit": "a739b49f"
12+
"regenerated": "2025-02-18 20:22:46.599032",
13+
"spec_repo_commit": "c8707cdc"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18141,6 +18141,29 @@ components:
1814118141

1814218142
Defaults to false.'
1814318143
type: boolean
18144+
include_actively_queried_tags_window:
18145+
description: 'When provided, all tags that have been actively queried are
18146+
18147+
configured (and, therefore, remain queryable) for each metric that
18148+
18149+
matches the given prefix. Minimum value is 1 second, and maximum
18150+
18151+
value is 7,776,000 seconds (90 days).'
18152+
format: double
18153+
maximum: 7776000
18154+
minimum: 1
18155+
type: number
18156+
override_existing_configurations:
18157+
description: 'When set to true, the configuration overrides any existing
18158+
18159+
configurations for the given metric with the new set of tags in this
18160+
18161+
configuration request. If false, old configurations are kept and
18162+
18163+
are merged with the set of tags in this configuration request.
18164+
18165+
Defaults to true.'
18166+
type: boolean
1814418167
tags:
1814518168
$ref: '#/components/schemas/MetricBulkTagConfigTagNameList'
1814618169
type: object

src/datadog_api_client/v2/model/metric_bulk_tag_config_create_attributes.py

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,13 @@
1919

2020

2121
class MetricBulkTagConfigCreateAttributes(ModelNormal):
22+
validations = {
23+
"include_actively_queried_tags_window": {
24+
"inclusive_maximum": 7776000,
25+
"inclusive_minimum": 1,
26+
},
27+
}
28+
2229
@cached_property
2330
def openapi_types(_):
2431
from datadog_api_client.v2.model.metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList
@@ -27,19 +34,25 @@ def openapi_types(_):
2734
return {
2835
"emails": (MetricBulkTagConfigEmailList,),
2936
"exclude_tags_mode": (bool,),
37+
"include_actively_queried_tags_window": (float,),
38+
"override_existing_configurations": (bool,),
3039
"tags": (MetricBulkTagConfigTagNameList,),
3140
}
3241

3342
attribute_map = {
3443
"emails": "emails",
3544
"exclude_tags_mode": "exclude_tags_mode",
45+
"include_actively_queried_tags_window": "include_actively_queried_tags_window",
46+
"override_existing_configurations": "override_existing_configurations",
3647
"tags": "tags",
3748
}
3849

3950
def __init__(
4051
self_,
4152
emails: Union[MetricBulkTagConfigEmailList, UnsetType] = unset,
4253
exclude_tags_mode: Union[bool, UnsetType] = unset,
54+
include_actively_queried_tags_window: Union[float, UnsetType] = unset,
55+
override_existing_configurations: Union[bool, UnsetType] = unset,
4356
tags: Union[MetricBulkTagConfigTagNameList, UnsetType] = unset,
4457
**kwargs,
4558
):
@@ -54,13 +67,30 @@ def __init__(
5467
Defaults to false.
5568
:type exclude_tags_mode: bool, optional
5669
70+
:param include_actively_queried_tags_window: When provided, all tags that have been actively queried are
71+
configured (and, therefore, remain queryable) for each metric that
72+
matches the given prefix. Minimum value is 1 second, and maximum
73+
value is 7,776,000 seconds (90 days).
74+
:type include_actively_queried_tags_window: float, optional
75+
76+
:param override_existing_configurations: When set to true, the configuration overrides any existing
77+
configurations for the given metric with the new set of tags in this
78+
configuration request. If false, old configurations are kept and
79+
are merged with the set of tags in this configuration request.
80+
Defaults to true.
81+
:type override_existing_configurations: bool, optional
82+
5783
:param tags: A list of tag names to apply to the configuration.
5884
:type tags: MetricBulkTagConfigTagNameList, optional
5985
"""
6086
if emails is not unset:
6187
kwargs["emails"] = emails
6288
if exclude_tags_mode is not unset:
6389
kwargs["exclude_tags_mode"] = exclude_tags_mode
90+
if include_actively_queried_tags_window is not unset:
91+
kwargs["include_actively_queried_tags_window"] = include_actively_queried_tags_window
92+
if override_existing_configurations is not unset:
93+
kwargs["override_existing_configurations"] = override_existing_configurations
6494
if tags is not unset:
6595
kwargs["tags"] = tags
6696
super().__init__(kwargs)

0 commit comments

Comments
 (0)