Skip to content

Commit 5f88599

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Mark aggregations arguments as deprecated since they're no longer needed (#2853)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent fbd5c75 commit 5f88599

File tree

6 files changed

+26
-111
lines changed

6 files changed

+26
-111
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-05-14 14:49:55.594978",
8-
"spec_repo_commit": "90c6252d"
7+
"regenerated": "2025-05-14 15:44:18.459381",
8+
"spec_repo_commit": "64f5e7ee"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 14:49:55.613273",
13-
"spec_repo_commit": "90c6252d"
12+
"regenerated": "2025-05-14 15:44:18.474808",
13+
"spec_repo_commit": "64f5e7ee"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 10 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -21171,38 +21171,8 @@ components:
2117121171
- space
2117221172
type: object
2117321173
MetricCustomAggregations:
21174-
description: 'A list of queryable aggregation combinations for a count, rate,
21175-
or gauge metric.
21176-
21177-
By default, count and rate metrics require the (time: sum, space: sum) aggregation
21178-
and
21179-
21180-
Gauge metrics require the (time: avg, space: avg) aggregation.
21181-
21182-
Additional time & space combinations are also available:
21183-
21184-
21185-
- time: avg, space: avg
21186-
21187-
- time: avg, space: max
21188-
21189-
- time: avg, space: min
21190-
21191-
- time: avg, space: sum
21192-
21193-
- time: count, space: sum
21194-
21195-
- time: max, space: max
21196-
21197-
- time: min, space: min
21198-
21199-
- time: sum, space: avg
21200-
21201-
- time: sum, space: sum
21202-
21203-
21204-
Can only be applied to non_distribution metrics that have a `metric_type`
21205-
of `count`, `rate`, or `gauge`.'
21174+
description: Deprecated. You no longer need to configure specific time and space
21175+
aggregations for Metrics Without Limits.
2120621176
example:
2120721177
- space: sum
2120821178
time: sum
@@ -50186,8 +50156,7 @@ paths:
5018650156
maximum: 2147483647
5018750157
minimum: 49
5018850158
type: integer
50189-
- description: The number of aggregations that a `count`, `rate`, or `gauge`
50190-
metric is configured to use. Max number of aggregation combos is 9.
50159+
- description: Deprecated. Number of aggregations has no impact on volume.
5019150160
example: 1
5019250161
in: query
5019350162
name: filter[num_aggregations]
@@ -50395,17 +50364,16 @@ paths:
5039550364
description: 'Create and define a list of queryable tag keys for an existing
5039650365
count/gauge/rate/distribution metric.
5039750366

50398-
Optionally, include percentile aggregations on any distribution metric or
50399-
configure custom aggregations
50367+
Optionally, include percentile aggregations on any distribution metric. By
50368+
setting `exclude_tags_mode`
5040050369

50401-
on any count, rate, or gauge metric. By setting `exclude_tags_mode` to true
50402-
the behavior is changed
50370+
to true, the behavior is changed from an allow-list to a deny-list, and tags
50371+
in the defined list are
5040350372

50404-
from an allow-list to a deny-list, and tags in the defined list will not be
50405-
queryable.
50373+
not queryable. Can only be used with application keys of users with the `Manage
50374+
Tags for Metrics`
5040650375

50407-
Can only be used with application keys of users with the `Manage Tags for
50408-
Metrics` permission.'
50376+
permission.'
5040950377
operationId: CreateTagConfiguration
5041050378
parameters:
5041150379
- $ref: '#/components/parameters/MetricName'

src/main/java/com/datadog/api/client/v2/api/MetricsApi.java

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -248,11 +248,10 @@ public CompletableFuture<MetricTagConfigurationResponse> createTagConfigurationA
248248

249249
/**
250250
* Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution
251-
* metric. Optionally, include percentile aggregations on any distribution metric or configure
252-
* custom aggregations on any count, rate, or gauge metric. By setting <code>exclude_tags_mode
253-
* </code> to true the behavior is changed from an allow-list to a deny-list, and tags in the
254-
* defined list will not be queryable. Can only be used with application keys of users with the
255-
* <code>Manage Tags for Metrics</code> permission.
251+
* metric. Optionally, include percentile aggregations on any distribution metric. By setting
252+
* <code>exclude_tags_mode</code> to true, the behavior is changed from an allow-list to a
253+
* deny-list, and tags in the defined list are not queryable. Can only be used with application
254+
* keys of users with the <code>Manage Tags for Metrics</code> permission.
256255
*
257256
* @param metricName The name of the metric. (required)
258257
* @param body (required)
@@ -697,9 +696,8 @@ public EstimateMetricsOutputSeriesOptionalParameters filterHoursAgo(Integer filt
697696
/**
698697
* Set filterNumAggregations.
699698
*
700-
* @param filterNumAggregations The number of aggregations that a <code>count</code>, <code>rate
701-
* </code>, or <code>gauge</code> metric is configured to use. Max number of aggregation
702-
* combos is 9. (optional)
699+
* @param filterNumAggregations Deprecated. Number of aggregations has no impact on volume.
700+
* (optional)
703701
* @return EstimateMetricsOutputSeriesOptionalParameters
704702
*/
705703
public EstimateMetricsOutputSeriesOptionalParameters filterNumAggregations(

src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationAttributes.java

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -73,25 +73,8 @@ public MetricTagConfigurationAttributes addAggregationsItem(
7373
}
7474

7575
/**
76-
* A list of queryable aggregation combinations for a count, rate, or gauge metric. By default,
77-
* count and rate metrics require the (time: sum, space: sum) aggregation and Gauge metrics
78-
* require the (time: avg, space: avg) aggregation. Additional time &amp; space combinations are
79-
* also available:
80-
*
81-
* <ul>
82-
* <li>time: avg, space: avg
83-
* <li>time: avg, space: max
84-
* <li>time: avg, space: min
85-
* <li>time: avg, space: sum
86-
* <li>time: count, space: sum
87-
* <li>time: max, space: max
88-
* <li>time: min, space: min
89-
* <li>time: sum, space: avg
90-
* <li>time: sum, space: sum
91-
* </ul>
92-
*
93-
* <p>Can only be applied to non_distribution metrics that have a <code>metric_type</code> of
94-
* <code>count</code>, <code>rate</code>, or <code>gauge</code>.
76+
* Deprecated. You no longer need to configure specific time and space aggregations for Metrics
77+
* Without Limits.
9578
*
9679
* @return aggregations
9780
*/

src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationCreateAttributes.java

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -78,25 +78,8 @@ public MetricTagConfigurationCreateAttributes addAggregationsItem(
7878
}
7979

8080
/**
81-
* A list of queryable aggregation combinations for a count, rate, or gauge metric. By default,
82-
* count and rate metrics require the (time: sum, space: sum) aggregation and Gauge metrics
83-
* require the (time: avg, space: avg) aggregation. Additional time &amp; space combinations are
84-
* also available:
85-
*
86-
* <ul>
87-
* <li>time: avg, space: avg
88-
* <li>time: avg, space: max
89-
* <li>time: avg, space: min
90-
* <li>time: avg, space: sum
91-
* <li>time: count, space: sum
92-
* <li>time: max, space: max
93-
* <li>time: min, space: min
94-
* <li>time: sum, space: avg
95-
* <li>time: sum, space: sum
96-
* </ul>
97-
*
98-
* <p>Can only be applied to non_distribution metrics that have a <code>metric_type</code> of
99-
* <code>count</code>, <code>rate</code>, or <code>gauge</code>.
81+
* Deprecated. You no longer need to configure specific time and space aggregations for Metrics
82+
* Without Limits.
10083
*
10184
* @return aggregations
10285
*/

src/main/java/com/datadog/api/client/v2/model/MetricTagConfigurationUpdateAttributes.java

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -61,25 +61,8 @@ public MetricTagConfigurationUpdateAttributes addAggregationsItem(
6161
}
6262

6363
/**
64-
* A list of queryable aggregation combinations for a count, rate, or gauge metric. By default,
65-
* count and rate metrics require the (time: sum, space: sum) aggregation and Gauge metrics
66-
* require the (time: avg, space: avg) aggregation. Additional time &amp; space combinations are
67-
* also available:
68-
*
69-
* <ul>
70-
* <li>time: avg, space: avg
71-
* <li>time: avg, space: max
72-
* <li>time: avg, space: min
73-
* <li>time: avg, space: sum
74-
* <li>time: count, space: sum
75-
* <li>time: max, space: max
76-
* <li>time: min, space: min
77-
* <li>time: sum, space: avg
78-
* <li>time: sum, space: sum
79-
* </ul>
80-
*
81-
* <p>Can only be applied to non_distribution metrics that have a <code>metric_type</code> of
82-
* <code>count</code>, <code>rate</code>, or <code>gauge</code>.
64+
* Deprecated. You no longer need to configure specific time and space aggregations for Metrics
65+
* Without Limits.
8366
*
8467
* @return aggregations
8568
*/

0 commit comments

Comments
 (0)