1919
2020
2121class 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