19
19
20
20
21
21
class MetricBulkTagConfigCreateAttributes (ModelNormal ):
22
+ validations = {
23
+ "include_actively_queried_tags_window" : {
24
+ "inclusive_maximum" : 7776000 ,
25
+ "inclusive_minimum" : 1 ,
26
+ },
27
+ }
28
+
22
29
@cached_property
23
30
def openapi_types (_ ):
24
31
from datadog_api_client .v2 .model .metric_bulk_tag_config_email_list import MetricBulkTagConfigEmailList
@@ -27,19 +34,25 @@ def openapi_types(_):
27
34
return {
28
35
"emails" : (MetricBulkTagConfigEmailList ,),
29
36
"exclude_tags_mode" : (bool ,),
37
+ "include_actively_queried_tags_window" : (float ,),
38
+ "override_existing_configurations" : (bool ,),
30
39
"tags" : (MetricBulkTagConfigTagNameList ,),
31
40
}
32
41
33
42
attribute_map = {
34
43
"emails" : "emails" ,
35
44
"exclude_tags_mode" : "exclude_tags_mode" ,
45
+ "include_actively_queried_tags_window" : "include_actively_queried_tags_window" ,
46
+ "override_existing_configurations" : "override_existing_configurations" ,
36
47
"tags" : "tags" ,
37
48
}
38
49
39
50
def __init__ (
40
51
self_ ,
41
52
emails : Union [MetricBulkTagConfigEmailList , UnsetType ] = unset ,
42
53
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 ,
43
56
tags : Union [MetricBulkTagConfigTagNameList , UnsetType ] = unset ,
44
57
** kwargs ,
45
58
):
@@ -54,13 +67,30 @@ def __init__(
54
67
Defaults to false.
55
68
:type exclude_tags_mode: bool, optional
56
69
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
+
57
83
:param tags: A list of tag names to apply to the configuration.
58
84
:type tags: MetricBulkTagConfigTagNameList, optional
59
85
"""
60
86
if emails is not unset :
61
87
kwargs ["emails" ] = emails
62
88
if exclude_tags_mode is not unset :
63
89
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
64
94
if tags is not unset :
65
95
kwargs ["tags" ] = tags
66
96
super ().__init__ (kwargs )
0 commit comments