Skip to content

Commit ecf1324

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b1f4bbfd of spec repo
1 parent 3b8618f commit ecf1324

6 files changed

+37
-13
lines changed

.apigentools-info

+4-4
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-04-29 18:57:42.269886",
8-
"spec_repo_commit": "d1252b21"
7+
"regenerated": "2025-04-30 00:24:44.556196",
8+
"spec_repo_commit": "b1f4bbfd"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-29 18:57:42.285613",
13-
"spec_repo_commit": "d1252b21"
12+
"regenerated": "2025-04-30 00:24:44.571870",
13+
"spec_repo_commit": "b1f4bbfd"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

+6-5
Original file line numberDiff line numberDiff line change
@@ -20803,6 +20803,7 @@ components:
2080320803
- space
2080420804
type: object
2080520805
MetricCustomAggregations:
20806+
deprecated: true
2080620807
description: 'A list of queryable aggregation combinations for a count, rate,
2080720808
or gauge metric.
2080820809

@@ -49413,9 +49414,8 @@ paths:
4941349414
- Metrics
4941449415
/api/v2/metrics/{metric_name}/estimate:
4941549416
get:
49416-
description: Returns the estimated cardinality for a metric with a given tag,
49417-
percentile and number of aggregations configuration using Metrics without
49418-
Limits™.
49417+
description: Returns the estimated cardinality for a metric with a given tag
49418+
and percentile configuration using Metrics without Limits™.
4941949419
operationId: EstimateMetricsOutputSeries
4942049420
parameters:
4942149421
- $ref: '#/components/parameters/MetricName'
@@ -49437,8 +49437,9 @@ paths:
4943749437
maximum: 2147483647
4943849438
minimum: 49
4943949439
type: integer
49440-
- description: The number of aggregations that a `count`, `rate`, or `gauge`
49441-
metric is configured to use. Max number of aggregation combos is 9.
49440+
- deprecated: true
49441+
description: This argument has no effect as all time and space combinations
49442+
are now available with no impact on customer bills.
4944249443
example: 1
4944349444
in: query
4944449445
name: filter[num_aggregations]

src/datadogV2/api/api_metrics.rs

+4-4
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+
/// This argument has no effect as all time and space combinations are now available with no impact on customer bills.
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+
/// This argument has no effect as all time and space combinations are now available with no impact on customer bills.
4343
pub fn filter_num_aggregations(mut self, value: i32) -> Self {
4444
self.filter_num_aggregations = Some(value);
4545
self
@@ -980,7 +980,7 @@ impl MetricsAPI {
980980
}
981981
}
982982

983-
/// Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits&trade;.
983+
/// Returns the estimated cardinality for a metric with a given tag and percentile configuration using Metrics without Limits&trade;.
984984
pub async fn estimate_metrics_output_series(
985985
&self,
986986
metric_name: String,
@@ -1006,7 +1006,7 @@ impl MetricsAPI {
10061006
}
10071007
}
10081008

1009-
/// Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits&trade;.
1009+
/// Returns the estimated cardinality for a metric with a given tag and percentile configuration using Metrics without Limits&trade;.
10101010
pub async fn estimate_metrics_output_series_with_http_info(
10111011
&self,
10121012
metric_name: String,

src/datadogV2/model/model_metric_tag_configuration_attributes.rs

+10
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub struct MetricTagConfigurationAttributes {
2727
/// - time: sum, space: sum
2828
///
2929
/// Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
30+
#[deprecated]
3031
#[serde(rename = "aggregations")]
3132
pub aggregations: Option<Vec<crate::datadogV2::model::MetricCustomAggregation>>,
3233
/// Timestamp when the tag configuration was created.
@@ -59,6 +60,7 @@ pub struct MetricTagConfigurationAttributes {
5960

6061
impl MetricTagConfigurationAttributes {
6162
pub fn new() -> MetricTagConfigurationAttributes {
63+
#[allow(deprecated)]
6264
MetricTagConfigurationAttributes {
6365
aggregations: None,
6466
created_at: None,
@@ -72,6 +74,7 @@ impl MetricTagConfigurationAttributes {
7274
}
7375
}
7476

77+
#[allow(deprecated)]
7578
pub fn aggregations(
7679
mut self,
7780
value: Vec<crate::datadogV2::model::MetricCustomAggregation>,
@@ -80,21 +83,25 @@ impl MetricTagConfigurationAttributes {
8083
self
8184
}
8285

86+
#[allow(deprecated)]
8387
pub fn created_at(mut self, value: chrono::DateTime<chrono::Utc>) -> Self {
8488
self.created_at = Some(value);
8589
self
8690
}
8791

92+
#[allow(deprecated)]
8893
pub fn exclude_tags_mode(mut self, value: bool) -> Self {
8994
self.exclude_tags_mode = Some(value);
9095
self
9196
}
9297

98+
#[allow(deprecated)]
9399
pub fn include_percentiles(mut self, value: bool) -> Self {
94100
self.include_percentiles = Some(value);
95101
self
96102
}
97103

104+
#[allow(deprecated)]
98105
pub fn metric_type(
99106
mut self,
100107
value: crate::datadogV2::model::MetricTagConfigurationMetricTypes,
@@ -103,11 +110,13 @@ impl MetricTagConfigurationAttributes {
103110
self
104111
}
105112

113+
#[allow(deprecated)]
106114
pub fn modified_at(mut self, value: chrono::DateTime<chrono::Utc>) -> Self {
107115
self.modified_at = Some(value);
108116
self
109117
}
110118

119+
#[allow(deprecated)]
111120
pub fn tags(mut self, value: Vec<String>) -> Self {
112121
self.tags = Some(value);
113122
self
@@ -227,6 +236,7 @@ impl<'de> Deserialize<'de> for MetricTagConfigurationAttributes {
227236
}
228237
}
229238

239+
#[allow(deprecated)]
230240
let content = MetricTagConfigurationAttributes {
231241
aggregations,
232242
created_at,

src/datadogV2/model/model_metric_tag_configuration_create_attributes.rs

+6
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub struct MetricTagConfigurationCreateAttributes {
2727
/// - time: sum, space: sum
2828
///
2929
/// Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
30+
#[deprecated]
3031
#[serde(rename = "aggregations")]
3132
pub aggregations: Option<Vec<crate::datadogV2::model::MetricCustomAggregation>>,
3233
/// When set to true, the configuration will exclude the configured tags and include any other submitted tags.
@@ -56,6 +57,7 @@ impl MetricTagConfigurationCreateAttributes {
5657
metric_type: crate::datadogV2::model::MetricTagConfigurationMetricTypes,
5758
tags: Vec<String>,
5859
) -> MetricTagConfigurationCreateAttributes {
60+
#[allow(deprecated)]
5961
MetricTagConfigurationCreateAttributes {
6062
aggregations: None,
6163
exclude_tags_mode: None,
@@ -67,6 +69,7 @@ impl MetricTagConfigurationCreateAttributes {
6769
}
6870
}
6971

72+
#[allow(deprecated)]
7073
pub fn aggregations(
7174
mut self,
7275
value: Vec<crate::datadogV2::model::MetricCustomAggregation>,
@@ -75,11 +78,13 @@ impl MetricTagConfigurationCreateAttributes {
7578
self
7679
}
7780

81+
#[allow(deprecated)]
7882
pub fn exclude_tags_mode(mut self, value: bool) -> Self {
7983
self.exclude_tags_mode = Some(value);
8084
self
8185
}
8286

87+
#[allow(deprecated)]
8388
pub fn include_percentiles(mut self, value: bool) -> Self {
8489
self.include_percentiles = Some(value);
8590
self
@@ -175,6 +180,7 @@ impl<'de> Deserialize<'de> for MetricTagConfigurationCreateAttributes {
175180
metric_type.ok_or_else(|| M::Error::missing_field("metric_type"))?;
176181
let tags = tags.ok_or_else(|| M::Error::missing_field("tags"))?;
177182

183+
#[allow(deprecated)]
178184
let content = MetricTagConfigurationCreateAttributes {
179185
aggregations,
180186
exclude_tags_mode,

src/datadogV2/model/model_metric_tag_configuration_update_attributes.rs

+7
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ pub struct MetricTagConfigurationUpdateAttributes {
2727
/// - time: sum, space: sum
2828
///
2929
/// Can only be applied to non_distribution metrics that have a `metric_type` of `count`, `rate`, or `gauge`.
30+
#[deprecated]
3031
#[serde(rename = "aggregations")]
3132
pub aggregations: Option<Vec<crate::datadogV2::model::MetricCustomAggregation>>,
3233
/// When set to true, the configuration will exclude the configured tags and include any other submitted tags.
@@ -50,6 +51,7 @@ pub struct MetricTagConfigurationUpdateAttributes {
5051

5152
impl MetricTagConfigurationUpdateAttributes {
5253
pub fn new() -> MetricTagConfigurationUpdateAttributes {
54+
#[allow(deprecated)]
5355
MetricTagConfigurationUpdateAttributes {
5456
aggregations: None,
5557
exclude_tags_mode: None,
@@ -60,6 +62,7 @@ impl MetricTagConfigurationUpdateAttributes {
6062
}
6163
}
6264

65+
#[allow(deprecated)]
6366
pub fn aggregations(
6467
mut self,
6568
value: Vec<crate::datadogV2::model::MetricCustomAggregation>,
@@ -68,16 +71,19 @@ impl MetricTagConfigurationUpdateAttributes {
6871
self
6972
}
7073

74+
#[allow(deprecated)]
7175
pub fn exclude_tags_mode(mut self, value: bool) -> Self {
7276
self.exclude_tags_mode = Some(value);
7377
self
7478
}
7579

80+
#[allow(deprecated)]
7681
pub fn include_percentiles(mut self, value: bool) -> Self {
7782
self.include_percentiles = Some(value);
7883
self
7984
}
8085

86+
#[allow(deprecated)]
8187
pub fn tags(mut self, value: Vec<String>) -> Self {
8288
self.tags = Some(value);
8389
self
@@ -164,6 +170,7 @@ impl<'de> Deserialize<'de> for MetricTagConfigurationUpdateAttributes {
164170
}
165171
}
166172

173+
#[allow(deprecated)]
167174
let content = MetricTagConfigurationUpdateAttributes {
168175
aggregations,
169176
exclude_tags_mode,

0 commit comments

Comments
 (0)