Skip to content

Commit 34e8587

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit e1764101 of spec repo (#679)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent e354459 commit 34e8587

File tree

7 files changed

+30
-29
lines changed

7 files changed

+30
-29
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.2",
7-
"regenerated": "2022-05-17 14:58:54.916928",
8-
"spec_repo_commit": "6f5f750c"
7+
"regenerated": "2022-05-18 14:23:35.705111",
8+
"spec_repo_commit": "e1764101"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-17 14:58:54.934124",
13-
"spec_repo_commit": "6f5f750c"
12+
"regenerated": "2022-05-18 14:23:35.717964",
13+
"spec_repo_commit": "e1764101"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9752,12 +9752,13 @@ paths:
97529752
type: safe
97539753
/api/v2/metrics/{metric_name}/estimate:
97549754
get:
9755-
description: Returns a cardinality estimate for a metric with a given tag, percentile,
9756-
and number of aggregations configuration.
9755+
description: Returns the estimated cardinality for a metric with a given tag,
9756+
percentile and number of aggregations configuration using Metrics without
9757+
Limits&trade;.
97579758
operationId: EstimateMetricsOutputSeries
97589759
parameters:
97599760
- $ref: '#/components/parameters/MetricName'
9760-
- description: Filtered tag groups that the metric is configured to query with.
9761+
- description: Filtered tag keys that the metric is configured to query with.
97619762
example: app,host
97629763
in: query
97639764
name: filter[groups]
@@ -9831,7 +9832,7 @@ paths:
98319832
- apiKeyAuth: []
98329833
appKeyAuth: []
98339834
- AuthZ: []
9834-
summary: Estimate Output Series - Public v2 API
9835+
summary: Tag Configuration Cardinality Estimator
98359836
tags:
98369837
- Metrics
98379838
x-dd-ownership:
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"log": {
3-
"_recordingName": "Metrics/Estimate Output Series - Public v2 API returns \"Success\" response",
3+
"_recordingName": "Metrics/Tag Configuration Cardinality Estimator returns \"Success\" response",
44
"creator": {
55
"comment": "persister:fs",
66
"name": "Polly.JS",

examples/v2/metrics/EstimateMetricsOutputSeries.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Estimate Output Series - Public v2 API returns "Success" response
2+
* Tag Configuration Cardinality Estimator returns "Success" response
33
*/
44

55
import { v2 } from "@datadog/datadog-api-client";

features/v2/metrics.feature

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -89,23 +89,6 @@ Feature: Metrics
8989
When the request is sent
9090
Then the response status is 404 Not found
9191

92-
@generated @skip @team:DataDog/points-aggregation
93-
Scenario: Estimate Output Series - Public v2 API returns "API error response." response
94-
Given a valid "appKeyAuth" key in the system
95-
And new "EstimateMetricsOutputSeries" request
96-
And request contains "metric_name" parameter from "REPLACE.ME"
97-
When the request is sent
98-
Then the response status is 404 API error response.
99-
100-
@replay-only @team:DataDog/points-aggregation
101-
Scenario: Estimate Output Series - Public v2 API returns "Success" response
102-
Given new "EstimateMetricsOutputSeries" request
103-
And request contains "metric_name" parameter with value "system.cpu.idle"
104-
And request contains "filter[groups]" parameter with value "app,host"
105-
And request contains "filter[num_aggregations]" parameter with value 4
106-
When the request is sent
107-
Then the response status is 200 Success
108-
10992
@generated @skip @team:DataDog/points-aggregation
11093
Scenario: List distinct metric volumes by metric name returns "Bad Request" response
11194
Given a valid "appKeyAuth" key in the system
@@ -243,6 +226,23 @@ Feature: Metrics
243226
When the request is sent
244227
Then the response status is 408 Request timeout
245228

229+
@generated @skip @team:DataDog/points-aggregation
230+
Scenario: Tag Configuration Cardinality Estimator returns "API error response." response
231+
Given a valid "appKeyAuth" key in the system
232+
And new "EstimateMetricsOutputSeries" request
233+
And request contains "metric_name" parameter from "REPLACE.ME"
234+
When the request is sent
235+
Then the response status is 404 API error response.
236+
237+
@replay-only @team:DataDog/points-aggregation
238+
Scenario: Tag Configuration Cardinality Estimator returns "Success" response
239+
Given new "EstimateMetricsOutputSeries" request
240+
And request contains "metric_name" parameter with value "system.cpu.idle"
241+
And request contains "filter[groups]" parameter with value "app,host"
242+
And request contains "filter[num_aggregations]" parameter with value 4
243+
When the request is sent
244+
Then the response status is 200 Success
245+
246246
@generated @skip @team:DataDog/points-aggregation
247247
Scenario: Update a tag configuration returns "Bad Request" response
248248
Given a valid "appKeyAuth" key in the system

packages/datadog-api-client-v2/apis/MetricsApi.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1417,7 +1417,7 @@ export interface MetricsApiEstimateMetricsOutputSeriesRequest {
14171417
*/
14181418
metricName: string;
14191419
/**
1420-
* Filtered tag groups that the metric is configured to query with.
1420+
* Filtered tag keys that the metric is configured to query with.
14211421
* @type string
14221422
*/
14231423
filterGroups?: string;
@@ -1648,7 +1648,7 @@ export class MetricsApi {
16481648
}
16491649

16501650
/**
1651-
* Returns a cardinality estimate for a metric with a given tag, percentile, and number of aggregations configuration.
1651+
* Returns the estimated cardinality for a metric with a given tag, percentile and number of aggregations configuration using Metrics without Limits&trade;.
16521652
* @param param The request object
16531653
*/
16541654
public estimateMetricsOutputSeries(

0 commit comments

Comments
 (0)