Skip to content

Commit 02583eb

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 71455c7c of spec repo
1 parent 457818b commit 02583eb

File tree

10 files changed

+85
-324
lines changed

10 files changed

+85
-324
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-04-14 16:33:07.855657",
8-
"spec_repo_commit": "c0287407"
7+
"regenerated": "2025-04-14 20:12:05.565007",
8+
"spec_repo_commit": "71455c7c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-14 16:33:07.871722",
13-
"spec_repo_commit": "c0287407"
12+
"regenerated": "2025-04-14 20:12:05.581844",
13+
"spec_repo_commit": "71455c7c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 14 additions & 82 deletions
Original file line numberDiff line numberDiff line change
@@ -19827,47 +19827,6 @@ components:
1982719827
- time
1982819828
- space
1982919829
type: object
19830-
MetricCustomAggregations:
19831-
description: 'A list of queryable aggregation combinations for a count, rate,
19832-
or gauge metric.
19833-
19834-
By default, count and rate metrics require the (time: sum, space: sum) aggregation
19835-
and
19836-
19837-
Gauge metrics require the (time: avg, space: avg) aggregation.
19838-
19839-
Additional time & space combinations are also available:
19840-
19841-
19842-
- time: avg, space: avg
19843-
19844-
- time: avg, space: max
19845-
19846-
- time: avg, space: min
19847-
19848-
- time: avg, space: sum
19849-
19850-
- time: count, space: sum
19851-
19852-
- time: max, space: max
19853-
19854-
- time: min, space: min
19855-
19856-
- time: sum, space: avg
19857-
19858-
- time: sum, space: sum
19859-
19860-
19861-
Can only be applied to non_distribution metrics that have a `metric_type`
19862-
of `count`, `rate`, or `gauge`.'
19863-
example:
19864-
- space: sum
19865-
time: sum
19866-
- space: sum
19867-
time: count
19868-
items:
19869-
$ref: '#/components/schemas/MetricCustomAggregation'
19870-
type: array
1987119830
MetricCustomSpaceAggregation:
1987219831
description: A space aggregation for use in query.
1987319832
enum:
@@ -20371,9 +20330,6 @@ components:
2037120330
description: Object for a single metric tag configuration.
2037220331
example:
2037320332
attributes:
20374-
aggregations:
20375-
- space: avg
20376-
time: avg
2037720333
created_at: '2020-03-25T09:48:37.463835Z'
2037820334
metric_type: gauge
2037920335
modified_at: '2020-04-25T09:48:37.463835Z'
@@ -20394,8 +20350,6 @@ components:
2039420350
description: Object containing the definition of a metric tag configuration
2039520351
attributes.
2039620352
properties:
20397-
aggregations:
20398-
$ref: '#/components/schemas/MetricCustomAggregations'
2039920353
created_at:
2040020354
description: Timestamp when the tag configuration was created.
2040120355
example: '2020-03-25T09:48:37.463835Z'
@@ -20438,8 +20392,6 @@ components:
2043820392
description: Object containing the definition of a metric tag configuration
2043920393
to be created.
2044020394
properties:
20441-
aggregations:
20442-
$ref: '#/components/schemas/MetricCustomAggregations'
2044320395
exclude_tags_mode:
2044420396
description: 'When set to true, the configuration will exclude the configured
2044520397
tags and include any other submitted tags.
@@ -20549,8 +20501,6 @@ components:
2054920501
description: Object containing the definition of a metric tag configuration
2055020502
to be updated.
2055120503
properties:
20552-
aggregations:
20553-
$ref: '#/components/schemas/MetricCustomAggregations'
2055420504
exclude_tags_mode:
2055520505
description: 'When set to true, the configuration will exclude the configured
2055620506
tags and include any other submitted tags.
@@ -45229,9 +45179,8 @@ paths:
4522945179
- metric_tags_write
4523045180
/api/v2/metrics/{metric_name}/active-configurations:
4523145181
get:
45232-
description: List tags and aggregations that are actively queried on dashboards,
45233-
notebooks, monitors, the Metrics Explorer, and using the API for a given metric
45234-
name.
45182+
description: List tags that are actively queried on dashboards, notebooks, monitors,
45183+
the Metrics Explorer, and using the API for a given metric name.
4523545184
operationId: ListActiveMetricConfigurations
4523645185
parameters:
4523745186
- $ref: '#/components/parameters/MetricName'
@@ -45277,7 +45226,7 @@ paths:
4527745226
schema:
4527845227
$ref: '#/components/schemas/APIErrorResponse'
4527945228
description: Too Many Requests
45280-
summary: List active tags and aggregations
45229+
summary: List active tags
4528145230
tags:
4528245231
- Metrics
4528345232
x-permission:
@@ -45381,9 +45330,8 @@ paths:
4538145330
- Metrics
4538245331
/api/v2/metrics/{metric_name}/estimate:
4538345332
get:
45384-
description: Returns the estimated cardinality for a metric with a given tag,
45385-
percentile and number of aggregations configuration using Metrics without
45386-
Limits™.
45333+
description: Returns the estimated cardinality for a metric with a given tag
45334+
and percentile configuration using Metrics without Limits™.
4538745335
operationId: EstimateMetricsOutputSeries
4538845336
parameters:
4538945337
- $ref: '#/components/parameters/MetricName'
@@ -45405,16 +45353,6 @@ paths:
4540545353
maximum: 2147483647
4540645354
minimum: 49
4540745355
type: integer
45408-
- description: The number of aggregations that a `count`, `rate`, or `gauge`
45409-
metric is configured to use. Max number of aggregation combos is 9.
45410-
example: 1
45411-
in: query
45412-
name: filter[num_aggregations]
45413-
required: false
45414-
schema:
45415-
format: int32
45416-
maximum: 9
45417-
type: integer
4541845356
- description: A boolean, for distribution metrics only, to estimate cardinality
4541945357
if the metric includes additional percentile aggregators.
4542045358
example: true
@@ -45550,13 +45488,10 @@ paths:
4555045488
- metrics_read
4555145489
patch:
4555245490
description: 'Update the tag configuration of a metric or percentile aggregations
45553-
of a distribution metric or custom aggregations
45491+
of a distribution metric. By setting `exclude_tags_mode`
4555445492

45555-
of a count, rate, or gauge metric. By setting `exclude_tags_mode` to true
45556-
the behavior is changed
45557-
45558-
from an allow-list to a deny-list, and tags in the defined list will not be
45559-
queryable.
45493+
to true the behavior is changed from an allow-list to a deny-list, and tags
45494+
in the defined list will not be queryable.
4556045495

4556145496
Can only be used with application keys from users with the `Manage Tags for
4556245497
Metrics` permission. This endpoint requires
@@ -45614,17 +45549,14 @@ paths:
4561445549
description: 'Create and define a list of queryable tag keys for an existing
4561545550
count/gauge/rate/distribution metric.
4561645551

45617-
Optionally, include percentile aggregations on any distribution metric or
45618-
configure custom aggregations
45619-
45620-
on any count, rate, or gauge metric. By setting `exclude_tags_mode` to true
45621-
the behavior is changed
45552+
Optionally, include percentile aggregations on any distribution metric. By
45553+
setting `exclude_tags_mode`
4562245554

45623-
from an allow-list to a deny-list, and tags in the defined list will not be
45624-
queryable.
45555+
to true the behavior is changed from an allow-list to a deny-list, and tags
45556+
in the defined list will not
4562545557

45626-
Can only be used with application keys of users with the `Manage Tags for
45627-
Metrics` permission.'
45558+
be queryable. Can only be used with application keys of users with the `Manage
45559+
Tags for Metrics` permission.'
4562845560
operationId: CreateTagConfiguration
4562945561
parameters:
4563045562
- $ref: '#/components/parameters/MetricName'

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");

examples/v2/metrics/ListActiveMetricConfigurations.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// List active tags and aggregations returns "Success" response
1+
// List active tags returns "Success" response
22

33
import com.datadog.api.client.ApiClient;
44
import com.datadog.api.client.ApiException;
@@ -12,7 +12,7 @@ public static void main(String[] args) {
1212

1313
try {
1414
MetricSuggestedTagsAndAggregationsResponse result =
15-
apiInstance.listActiveMetricConfigurations("static_test_metric_donotdelete");
15+
apiInstance.listActiveMetricConfigurations("metric_name");
1616
System.out.println(result);
1717
} catch (ApiException e) {
1818
System.err.println("Exception when calling MetricsApi#listActiveMetricConfigurations");
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// List active tags and aggregations returns "Success" response
2+
3+
import com.datadog.api.client.ApiClient;
4+
import com.datadog.api.client.ApiException;
5+
import com.datadog.api.client.v2.api.MetricsApi;
6+
import com.datadog.api.client.v2.model.MetricSuggestedTagsAndAggregationsResponse;
7+
8+
public class Example {
9+
public static void main(String[] args) {
10+
ApiClient defaultClient = ApiClient.getDefaultApiClient();
11+
MetricsApi apiInstance = new MetricsApi(defaultClient);
12+
13+
try {
14+
MetricSuggestedTagsAndAggregationsResponse result =
15+
apiInstance.listActiveMetricConfigurations("static_test_metric_donotdelete");
16+
System.out.println(result);
17+
} catch (ApiException e) {
18+
System.err.println("Exception when calling MetricsApi#listActiveMetricConfigurations");
19+
System.err.println("Status code: " + e.getCode());
20+
System.err.println("Reason: " + e.getResponseBody());
21+
System.err.println("Response headers: " + e.getResponseHeaders());
22+
e.printStackTrace();
23+
}
24+
}
25+
}

0 commit comments

Comments
 (0)