Skip to content

Commit ea798fb

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit bafa1f4 of spec repo (#3905)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 34e80b6 commit ea798fb

4 files changed

Lines changed: 24 additions & 5 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66274,7 +66274,7 @@ components:
6627466274
MetricEstimateType:
6627566275
default: count_or_gauge
6627666276
description: |-
66277-
Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric.
66277+
Estimate type based on the queried configuration. `count_or_gauge` is returned by default, and `distribution` is returned for distribution metrics. The `filter[pct]` query parameter has no effect on this value.
6627866278
enum:
6627966279
- count_or_gauge
6628066280
- distribution
@@ -171024,6 +171024,14 @@ paths:
171024171024
required: false
171025171025
schema:
171026171026
type: string
171027+
- description: |-
171028+
When `true`, `filter[groups]` is treated as an exclude list instead of an include list. Defaults to `false`.
171029+
example: false
171030+
in: query
171031+
name: filter[exclude_tags_mode]
171032+
required: false
171033+
schema:
171034+
type: boolean
171027171035
- description: The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
171028171036
example: 49
171029171037
in: query
@@ -171043,7 +171051,7 @@ paths:
171043171051
format: int32
171044171052
maximum: 9
171045171053
type: integer
171046-
- description: A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
171054+
- description: Deprecated. This query parameter has no effect on the estimate.
171047171055
example: true
171048171056
in: query
171049171057
name: filter[pct]

‎src/datadog_api_client/v2/api/metrics_api.py‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,11 @@ def __init__(self, api_client=None):
325325
"attribute": "filter[groups]",
326326
"location": "query",
327327
},
328+
"filter_exclude_tags_mode": {
329+
"openapi_types": (bool,),
330+
"attribute": "filter[exclude_tags_mode]",
331+
"location": "query",
332+
},
328333
"filter_hours_ago": {
329334
"validation": {
330335
"inclusive_maximum": 2147483647,
@@ -1116,6 +1121,7 @@ def estimate_metrics_output_series(
11161121
metric_name: str,
11171122
*,
11181123
filter_groups: Union[str, UnsetType] = unset,
1124+
filter_exclude_tags_mode: Union[bool, UnsetType] = unset,
11191125
filter_hours_ago: Union[int, UnsetType] = unset,
11201126
filter_num_aggregations: Union[int, UnsetType] = unset,
11211127
filter_pct: Union[bool, UnsetType] = unset,
@@ -1129,11 +1135,13 @@ def estimate_metrics_output_series(
11291135
:type metric_name: str
11301136
:param filter_groups: Comma-separated list of tag keys that the metric is configured to query with. For example: ``filter[groups]=app,host``.
11311137
:type filter_groups: str, optional
1138+
:param filter_exclude_tags_mode: When ``true`` , ``filter[groups]`` is treated as an exclude list instead of an include list. Defaults to ``false``.
1139+
:type filter_exclude_tags_mode: bool, optional
11321140
:param filter_hours_ago: The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
11331141
:type filter_hours_ago: int, optional
11341142
:param filter_num_aggregations: Deprecated. Number of aggregations has no impact on volume.
11351143
:type filter_num_aggregations: int, optional
1136-
:param filter_pct: A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
1144+
:param filter_pct: Deprecated. This query parameter has no effect on the estimate.
11371145
:type filter_pct: bool, optional
11381146
:param filter_timespan_h: A window, in hours, from the look back to estimate cardinality with. The minimum and default is 1 hour.
11391147
:type filter_timespan_h: int, optional
@@ -1145,6 +1153,9 @@ def estimate_metrics_output_series(
11451153
if filter_groups is not unset:
11461154
kwargs["filter_groups"] = filter_groups
11471155

1156+
if filter_exclude_tags_mode is not unset:
1157+
kwargs["filter_exclude_tags_mode"] = filter_exclude_tags_mode
1158+
11481159
if filter_hours_ago is not unset:
11491160
kwargs["filter_hours_ago"] = filter_hours_ago
11501161

‎src/datadog_api_client/v2/model/metric_estimate_attributes.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545
"""
4646
Object containing the definition of a metric estimate attribute.
4747
48-
:param estimate_type: Estimate type based on the queried configuration. By default, ``count_or_gauge`` is returned. ``distribution`` is returned for distribution metrics without percentiles enabled. Lastly, ``percentile`` is returned if ``filter[pct]=true`` is queried with a distribution metric.
48+
:param estimate_type: Estimate type based on the queried configuration. ``count_or_gauge`` is returned by default, and ``distribution`` is returned for distribution metrics. The ``filter[pct]`` query parameter has no effect on this value.
4949
:type estimate_type: MetricEstimateType, optional
5050
5151
:param estimated_at: Timestamp when the cardinality estimate was requested.

‎src/datadog_api_client/v2/model/metric_estimate_type.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
class MetricEstimateType(ModelSimple):
1616
"""
17-
Estimate type based on the queried configuration. By default, `count_or_gauge` is returned. `distribution` is returned for distribution metrics without percentiles enabled. Lastly, `percentile` is returned if `filter[pct]=true` is queried with a distribution metric.
17+
Estimate type based on the queried configuration. `count_or_gauge` is returned by default, and `distribution` is returned for distribution metrics. The `filter[pct]` query parameter has no effect on this value.
1818
1919
:param value: If omitted defaults to "count_or_gauge". Must be one of ["count_or_gauge", "distribution", "percentile"].
2020
:type value: str

0 commit comments

Comments
 (0)