Skip to content

MWL no longer requires customers to configure specific time/space aggrs #2507

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-29 18:57:43.853175",
"spec_repo_commit": "d1252b21"
"regenerated": "2025-04-30 00:24:45.086234",
"spec_repo_commit": "b1f4bbfd"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2025-04-29 18:57:43.868755",
"spec_repo_commit": "d1252b21"
"regenerated": "2025-04-30 00:24:45.103358",
"spec_repo_commit": "b1f4bbfd"
}
}
}
11 changes: 6 additions & 5 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20803,6 +20803,7 @@ components:
- space
type: object
MetricCustomAggregations:
deprecated: true
description: 'A list of queryable aggregation combinations for a count, rate,
or gauge metric.

Expand Down Expand Up @@ -49413,9 +49414,8 @@ paths:
- Metrics
/api/v2/metrics/{metric_name}/estimate:
get:
description: Returns the estimated cardinality for a metric with a given tag,
percentile and number of aggregations configuration using Metrics without
Limits™.
description: Returns the estimated cardinality for a metric with a given tag
and percentile configuration using Metrics without Limits™.
operationId: EstimateMetricsOutputSeries
parameters:
- $ref: '#/components/parameters/MetricName'
Expand All @@ -49437,8 +49437,9 @@ paths:
maximum: 2147483647
minimum: 49
type: integer
- description: The number of aggregations that a `count`, `rate`, or `gauge`
metric is configured to use. Max number of aggregation combos is 9.
- deprecated: true
description: This argument has no effect as all time and space combinations
are now available with no impact on customer bills.
example: 1
in: query
name: filter[num_aggregations]
Expand Down
4 changes: 2 additions & 2 deletions src/datadog_api_client/v2/api/metrics_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,15 +592,15 @@ def estimate_metrics_output_series(
) -> MetricEstimateResponse:
"""Tag Configuration Cardinality Estimator.

Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits™.
Returns the estimated cardinality for a metric with a given tag and percentile configuration using Metrics without Limits™.

:param metric_name: The name of the metric.
:type metric_name: str
:param filter_groups: Filtered tag keys that the metric is configured to query with.
:type filter_groups: str, optional
:param filter_hours_ago: The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
:type filter_hours_ago: int, optional
:param filter_num_aggregations: The number of aggregations that a ``count`` , ``rate`` , or ``gauge`` metric is configured to use. Max number of aggregation combos is 9.
:param filter_num_aggregations: This argument has no effect as all time and space combinations are now available with no impact on customer bills.
:type filter_num_aggregations: int, optional
:param filter_pct: A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
:type filter_pct: bool, optional
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def __init__(
* time: sum, space: avg
* time: sum, space: sum

Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``. **Deprecated**.
:type aggregations: MetricCustomAggregations, optional

:param created_at: Timestamp when the tag configuration was created.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(
* time: sum, space: avg
* time: sum, space: sum

Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``. **Deprecated**.
:type aggregations: MetricCustomAggregations, optional

:param exclude_tags_mode: When set to true, the configuration will exclude the configured tags and include any other submitted tags.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def __init__(
* time: sum, space: avg
* time: sum, space: sum

Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``.
Can only be applied to non_distribution metrics that have a ``metric_type`` of ``count`` , ``rate`` , or ``gauge``. **Deprecated**.
:type aggregations: MetricCustomAggregations, optional

:param exclude_tags_mode: When set to true, the configuration will exclude the configured tags and include any other submitted tags.
Expand Down