Skip to content

Commit 1dd5aca

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit e1764101 of spec repo (#998)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent aaa6b12 commit 1dd5aca

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:59:00.575916",
8-
"spec_repo_commit": "6f5f750c"
7+
"regenerated": "2022-05-18 14:23:46.312017",
8+
"spec_repo_commit": "e1764101"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-05-17 14:59:00.587584",
13-
"spec_repo_commit": "6f5f750c"
12+
"regenerated": "2022-05-18 14:23:46.328977",
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:

examples/v2/metrics/EstimateMetricsOutputSeries.py

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
from datadog_api_client.v2 import ApiClient, Configuration

src/datadog_api_client/v2/api/metrics_api.py

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/v2/features/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

0 commit comments

Comments
 (0)