Skip to content

Commit e29f9af

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 49255f5b of spec repo
1 parent 4737a8f commit e29f9af

File tree

9 files changed

+63
-34
lines changed

9 files changed

+63
-34
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-07 17:07:25.236674",
8-
"spec_repo_commit": "a1235a0d"
7+
"regenerated": "2025-05-07 20:12:24.175174",
8+
"spec_repo_commit": "49255f5b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-05-07 17:07:25.253013",
13-
"spec_repo_commit": "a1235a0d"
12+
"regenerated": "2025-05-07 20:12:24.191123",
13+
"spec_repo_commit": "49255f5b"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 38 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20918,6 +20918,7 @@ components:
2091820918
- ZSTD1
2091920919
- GZIP
2092020920
MetricCustomAggregation:
20921+
deprecated: true
2092120922
description: A time and space aggregation combination for use in query.
2092220923
example:
2092320924
space: sum
@@ -20932,6 +20933,7 @@ components:
2093220933
- space
2093320934
type: object
2093420935
MetricCustomAggregations:
20936+
deprecated: true
2093520937
description: 'A list of queryable aggregation combinations for a count, rate,
2093620938
or gauge metric.
2093720939

@@ -20964,13 +20966,9 @@ components:
2096420966

2096520967
Can only be applied to non_distribution metrics that have a `metric_type`
2096620968
of `count`, `rate`, or `gauge`.'
20967-
example:
20968-
- space: sum
20969-
time: sum
20970-
- space: sum
20971-
time: count
2097220969
items:
2097320970
$ref: '#/components/schemas/MetricCustomAggregation'
20971+
deprecated: true
2097420972
type: array
2097520973
MetricCustomSpaceAggregation:
2097620974
description: A space aggregation for use in query.
@@ -21436,6 +21434,7 @@ components:
2143621434
time: count
2143721435
items:
2143821436
$ref: '#/components/schemas/MetricCustomAggregation'
21437+
deprecated: true
2143921438
type: array
2144021439
MetricSuggestedTagsAndAggregations:
2144121440
description: Object for a single metric's actively queried tags and aggregations.
@@ -21461,6 +21460,7 @@ components:
2146121460
properties:
2146221461
active_aggregations:
2146321462
$ref: '#/components/schemas/MetricSuggestedAggregations'
21463+
deprecated: true
2146421464
active_tags:
2146521465
description: List of tag keys that have been actively queried.
2146621466
example:
@@ -21500,6 +21500,7 @@ components:
2150021500
properties:
2150121501
aggregations:
2150221502
$ref: '#/components/schemas/MetricCustomAggregations'
21503+
deprecated: true
2150321504
created_at:
2150421505
description: Timestamp when the tag configuration was created.
2150521506
example: '2020-03-25T09:48:37.463835Z'
@@ -21544,6 +21545,7 @@ components:
2154421545
properties:
2154521546
aggregations:
2154621547
$ref: '#/components/schemas/MetricCustomAggregations'
21548+
deprecated: true
2154721549
exclude_tags_mode:
2154821550
description: 'When set to true, the configuration will exclude the configured
2154921551
tags and include any other submitted tags.
@@ -21655,6 +21657,7 @@ components:
2165521657
properties:
2165621658
aggregations:
2165721659
$ref: '#/components/schemas/MetricCustomAggregations'
21660+
deprecated: true
2165821661
exclude_tags_mode:
2165921662
description: 'When set to true, the configuration will exclude the configured
2166021663
tags and include any other submitted tags.
@@ -50068,9 +50071,8 @@ paths:
5006850071
- Metrics
5006950072
/api/v2/metrics/{metric_name}/estimate:
5007050073
get:
50071-
description: Returns the estimated cardinality for a metric with a given tag,
50072-
percentile and number of aggregations configuration using Metrics without
50073-
Limits™.
50074+
description: Returns the estimated cardinality for a metric with a given tag
50075+
and percentile configuration using Metrics without Limits™.
5007450076
operationId: EstimateMetricsOutputSeries
5007550077
parameters:
5007650078
- $ref: '#/components/parameters/MetricName'
@@ -50092,8 +50094,9 @@ paths:
5009250094
maximum: 2147483647
5009350095
minimum: 49
5009450096
type: integer
50095-
- description: The number of aggregations that a `count`, `rate`, or `gauge`
50096-
metric is configured to use. Max number of aggregation combos is 9.
50097+
- deprecated: true
50098+
description: This argument has no effect as all time and space combinations
50099+
are now available with no impact on customer bills.
5009750100
example: 1
5009850101
in: query
5009950102
name: filter[num_aggregations]
@@ -61234,15 +61237,31 @@ tags:
6123461237
description: Find out more at
6123561238
url: https://docs.datadoghq.com/logs/logs_to_metrics/
6123661239
name: Logs Metrics
61237-
- description: "The metrics endpoint allows you to:\n\n- Post metrics data so it can
61238-
be graphed on Datadog\u2019s dashboards\n- Query metrics from any time period
61239-
(timeseries and scalar)\n- Modify tag configurations for metrics\n- View tags
61240-
and volumes for metrics\n\n**Note**: A graph can only contain a set number of
61241-
points\nand as the timeframe over which a metric is viewed increases,\naggregation
61242-
between points occurs to stay below that set number.\n\nThe Post, Patch, and Delete
61243-
`manage_tags` API methods can only be performed by\na user who has the `Manage
61244-
Tags for Metrics` permission.\n\nSee the [Metrics page](https://docs.datadoghq.com/metrics/)
61245-
for more information."
61240+
- description: 'The metrics endpoint allows you to:
61241+
61242+
61243+
- Post metrics data so it can be graphed on Datadog dashboards
61244+
61245+
- Query metrics from any time period (timeseries and scalar)
61246+
61247+
- Modify tag configurations for metrics
61248+
61249+
- View tags and volumes for metrics
61250+
61251+
61252+
**Note**: A graph can only contain a set number of points
61253+
61254+
and as the timeframe over which a metric is viewed increases,
61255+
61256+
aggregation between points occurs to stay below that set number.
61257+
61258+
61259+
The Post, Patch, and Delete `manage_tags` API methods can only be performed by
61260+
61261+
a user who has the `Manage Tags for Metrics` permission.
61262+
61263+
61264+
See the [Metrics page](https://docs.datadoghq.com/metrics/) for more information.'
6124661265
name: Metrics
6124761266
- description: 'Configure your [Datadog Microsoft Teams integration](https://docs.datadoghq.com/integrations/microsoft_teams/)
6124861267

examples/v2/metrics/EstimateMetricsOutputSeries.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@ public static void main(String[] args) {
1515
MetricEstimateResponse result =
1616
apiInstance.estimateMetricsOutputSeries(
1717
"system.cpu.idle",
18-
new EstimateMetricsOutputSeriesOptionalParameters()
19-
.filterGroups("app,host")
20-
.filterNumAggregations(4));
18+
new EstimateMetricsOutputSeriesOptionalParameters().filterGroups("app,host"));
2119
System.out.println(result);
2220
} catch (ApiException e) {
2321
System.err.println("Exception when calling MetricsApi#estimateMetricsOutputSeries");

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -697,9 +697,8 @@ public EstimateMetricsOutputSeriesOptionalParameters filterHoursAgo(Integer filt
697697
/**
698698
* Set filterNumAggregations.
699699
*
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)
700+
* @param filterNumAggregations This argument has no effect as all time and space combinations
701+
* are now available with no impact on customer bills. (optional)
703702
* @return EstimateMetricsOutputSeriesOptionalParameters
704703
*/
705704
public EstimateMetricsOutputSeriesOptionalParameters filterNumAggregations(
@@ -801,8 +800,8 @@ public CompletableFuture<MetricEstimateResponse> estimateMetricsOutputSeriesAsyn
801800
}
802801

803802
/**
804-
* Returns the estimated cardinality for a metric with a given tag, percentile and number of
805-
* aggregations configuration using Metrics without Limits&trade;.
803+
* Returns the estimated cardinality for a metric with a given tag and percentile configuration
804+
* using Metrics without Limits&trade;.
806805
*
807806
* @param metricName The name of the metric. (required)
808807
* @param parameters Optional parameters for the request.

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
import java.util.Map;
1818
import java.util.Objects;
1919

20-
/** A time and space aggregation combination for use in query. */
20+
/**
21+
* A time and space aggregation combination for use in query.
22+
*
23+
* @deprecated
24+
*/
25+
@Deprecated
2126
@JsonPropertyOrder({
2227
MetricCustomAggregation.JSON_PROPERTY_SPACE,
2328
MetricCustomAggregation.JSON_PROPERTY_TIME

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,17 @@ public MetricTagConfigurationAttributes addAggregationsItem(
9494
* <code>count</code>, <code>rate</code>, or <code>gauge</code>.
9595
*
9696
* @return aggregations
97+
* @deprecated
9798
*/
99+
@Deprecated
98100
@jakarta.annotation.Nullable
99101
@JsonProperty(JSON_PROPERTY_AGGREGATIONS)
100102
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
101103
public List<MetricCustomAggregation> getAggregations() {
102104
return aggregations;
103105
}
104106

107+
@Deprecated
105108
public void setAggregations(List<MetricCustomAggregation> aggregations) {
106109
this.aggregations = aggregations;
107110
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,14 +99,17 @@ public MetricTagConfigurationCreateAttributes addAggregationsItem(
9999
* <code>count</code>, <code>rate</code>, or <code>gauge</code>.
100100
*
101101
* @return aggregations
102+
* @deprecated
102103
*/
104+
@Deprecated
103105
@jakarta.annotation.Nullable
104106
@JsonProperty(JSON_PROPERTY_AGGREGATIONS)
105107
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
106108
public List<MetricCustomAggregation> getAggregations() {
107109
return aggregations;
108110
}
109111

112+
@Deprecated
110113
public void setAggregations(List<MetricCustomAggregation> aggregations) {
111114
this.aggregations = aggregations;
112115
}

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,17 @@ public MetricTagConfigurationUpdateAttributes addAggregationsItem(
8282
* <code>count</code>, <code>rate</code>, or <code>gauge</code>.
8383
*
8484
* @return aggregations
85+
* @deprecated
8586
*/
87+
@Deprecated
8688
@jakarta.annotation.Nullable
8789
@JsonProperty(JSON_PROPERTY_AGGREGATIONS)
8890
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
8991
public List<MetricCustomAggregation> getAggregations() {
9092
return aggregations;
9193
}
9294

95+
@Deprecated
9396
public void setAggregations(List<MetricCustomAggregation> aggregations) {
9497
this.aggregations = aggregations;
9598
}

src/test/resources/com/datadog/api/client/v2/api/metrics.feature

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@endpoint(metrics) @endpoint(metrics-v2)
22
Feature: Metrics
33
The metrics endpoint allows you to: - Post metrics data so it can be
4-
graphed on Datadog’s dashboards - Query metrics from any time period
4+
graphed on Datadog dashboards - Query metrics from any time period
55
(timeseries and scalar) - Modify tag configurations for metrics - View
66
tags and volumes for metrics **Note**: A graph can only contain a set
77
number of points and as the timeframe over which a metric is viewed
@@ -370,7 +370,6 @@ Feature: Metrics
370370
Given new "EstimateMetricsOutputSeries" request
371371
And request contains "metric_name" parameter with value "system.cpu.idle"
372372
And request contains "filter[groups]" parameter with value "app,host"
373-
And request contains "filter[num_aggregations]" parameter with value 4
374373
When the request is sent
375374
Then the response status is 200 Success
376375

0 commit comments

Comments
 (0)