Skip to content

Commit 624a776

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Mark aggregations arguments as deprecated since they're no longer needed (#653)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 4bda8c3 commit 624a776

File tree

6 files changed

+27
-104
lines changed

6 files changed

+27
-104
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:34.099079",
8-
"spec_repo_commit": "90c6252d"
7+
"regenerated": "2025-05-14 15:44:18.586011",
8+
"spec_repo_commit": "64f5e7ee"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-14 14:49:34.116808",
13-
"spec_repo_commit": "90c6252d"
12+
"regenerated": "2025-05-14 15:44:18.601730",
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/datadogV2/api/api_metrics.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ pub struct EstimateMetricsOutputSeriesOptionalParams {
2020
pub filter_groups: Option<String>,
2121
/// The number of hours of look back (from now) to estimate cardinality with. If unspecified, it defaults to 0 hours.
2222
pub filter_hours_ago: Option<i32>,
23-
/// The number of aggregations that a `count`, `rate`, or `gauge` metric is configured to use. Max number of aggregation combos is 9.
23+
/// Deprecated. Number of aggregations has no impact on volume.
2424
pub filter_num_aggregations: Option<i32>,
2525
/// A boolean, for distribution metrics only, to estimate cardinality if the metric includes additional percentile aggregators.
2626
pub filter_pct: Option<bool>,
@@ -39,7 +39,7 @@ impl EstimateMetricsOutputSeriesOptionalParams {
3939
self.filter_hours_ago = Some(value);
4040
self
4141
}
42-
/// The number of aggregations that a `count`, `rate`, or `gauge` metric is configured to use. Max number of aggregation combos is 9.
42+
/// Deprecated. Number of aggregations has no impact on volume.
4343
pub fn filter_num_aggregations(mut self, value: i32) -> Self {
4444
self.filter_num_aggregations = Some(value);
4545
self
@@ -557,10 +557,10 @@ impl MetricsAPI {
557557
}
558558

559559
/// Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric.
560-
/// Optionally, include percentile aggregations on any distribution metric or configure custom aggregations
561-
/// on any count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed
562-
/// from an allow-list to a deny-list, and tags in the defined list will not be queryable.
563-
/// Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
560+
/// Optionally, include percentile aggregations on any distribution metric. By setting `exclude_tags_mode`
561+
/// to true, the behavior is changed from an allow-list to a deny-list, and tags in the defined list are
562+
/// not queryable. Can only be used with application keys of users with the `Manage Tags for Metrics`
563+
/// permission.
564564
pub async fn create_tag_configuration(
565565
&self,
566566
metric_name: String,
@@ -587,10 +587,10 @@ impl MetricsAPI {
587587
}
588588

589589
/// Create and define a list of queryable tag keys for an existing count/gauge/rate/distribution metric.
590-
/// Optionally, include percentile aggregations on any distribution metric or configure custom aggregations
591-
/// on any count, rate, or gauge metric. By setting `exclude_tags_mode` to true the behavior is changed
592-
/// from an allow-list to a deny-list, and tags in the defined list will not be queryable.
593-
/// Can only be used with application keys of users with the `Manage Tags for Metrics` permission.
590+
/// Optionally, include percentile aggregations on any distribution metric. By setting `exclude_tags_mode`
591+
/// to true, the behavior is changed from an allow-list to a deny-list, and tags in the defined list are
592+
/// not queryable. Can only be used with application keys of users with the `Manage Tags for Metrics`
593+
/// permission.
594594
pub async fn create_tag_configuration_with_http_info(
595595
&self,
596596
metric_name: String,

src/datadogV2/model/model_metric_tag_configuration_attributes.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct MetricTagConfigurationAttributes {
14-
/// A list of queryable aggregation combinations for a count, rate, or gauge metric.
15-
/// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
16-
/// Gauge metrics require the (time: avg, space: avg) aggregation.
17-
/// Additional time & space combinations are also available:
18-
///
19-
/// - time: avg, space: avg
20-
/// - time: avg, space: max
21-
/// - time: avg, space: min
22-
/// - time: avg, space: sum
23-
/// - time: count, space: sum
24-
/// - time: max, space: max
25-
/// - time: min, space: min
26-
/// - time: sum, space: avg
27-
/// - time: sum, space: sum
28-
///
29-
/// Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
14+
/// Deprecated. You no longer need to configure specific time and space aggregations for Metrics Without Limits.
3015
#[serde(rename = "aggregations")]
3116
pub aggregations: Option<Vec<crate::datadogV2::model::MetricCustomAggregation>>,
3217
/// Timestamp when the tag configuration was created.

src/datadogV2/model/model_metric_tag_configuration_create_attributes.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct MetricTagConfigurationCreateAttributes {
14-
/// A list of queryable aggregation combinations for a count, rate, or gauge metric.
15-
/// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
16-
/// Gauge metrics require the (time: avg, space: avg) aggregation.
17-
/// Additional time & space combinations are also available:
18-
///
19-
/// - time: avg, space: avg
20-
/// - time: avg, space: max
21-
/// - time: avg, space: min
22-
/// - time: avg, space: sum
23-
/// - time: count, space: sum
24-
/// - time: max, space: max
25-
/// - time: min, space: min
26-
/// - time: sum, space: avg
27-
/// - time: sum, space: sum
28-
///
29-
/// Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
14+
/// Deprecated. You no longer need to configure specific time and space aggregations for Metrics Without Limits.
3015
#[serde(rename = "aggregations")]
3116
pub aggregations: Option<Vec<crate::datadogV2::model::MetricCustomAggregation>>,
3217
/// When set to true, the configuration will exclude the configured tags and include any other submitted tags.

src/datadogV2/model/model_metric_tag_configuration_update_attributes.rs

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,7 @@ use std::fmt::{self, Formatter};
1111
#[skip_serializing_none]
1212
#[derive(Clone, Debug, PartialEq, Serialize)]
1313
pub struct MetricTagConfigurationUpdateAttributes {
14-
/// A list of queryable aggregation combinations for a count, rate, or gauge metric.
15-
/// By default, count and rate metrics require the (time: sum, space: sum) aggregation and
16-
/// Gauge metrics require the (time: avg, space: avg) aggregation.
17-
/// Additional time & space combinations are also available:
18-
///
19-
/// - time: avg, space: avg
20-
/// - time: avg, space: max
21-
/// - time: avg, space: min
22-
/// - time: avg, space: sum
23-
/// - time: count, space: sum
24-
/// - time: max, space: max
25-
/// - time: min, space: min
26-
/// - time: sum, space: avg
27-
/// - time: sum, space: sum
28-
///
29-
/// Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
14+
/// Deprecated. You no longer need to configure specific time and space aggregations for Metrics Without Limits.
3015
#[serde(rename = "aggregations")]
3116
pub aggregations: Option<Vec<crate::datadogV2::model::MetricCustomAggregation>>,
3217
/// When set to true, the configuration will exclude the configured tags and include any other submitted tags.

0 commit comments

Comments
 (0)