Skip to content

Commit 6002a4b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[query] rm note about unstable datasources (#2247)
* Regenerate client from commit 6c0fa1b6 of spec repo * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 1837103 commit 6002a4b

File tree

8 files changed

+4
-30
lines changed

8 files changed

+4
-30
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": "2024-11-05 20:16:36.893099",
8-
"spec_repo_commit": "1a56bfda"
7+
"regenerated": "2024-11-05 21:07:14.133850",
8+
"spec_repo_commit": "6c0fa1b6"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-05 20:16:36.911327",
13-
"spec_repo_commit": "1a56bfda"
12+
"regenerated": "2024-11-05 21:07:14.151593",
13+
"spec_repo_commit": "6c0fa1b6"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -35699,12 +35699,6 @@ paths:
3569935699
operator: OR
3570035700
permissions:
3570135701
- timeseries_query
35702-
x-unstable: '**Note**: This endpoint is GA for Metrics, Real User Monitoring
35703-
(RUM), Cloud Cost Management, and Log Management data sources.
35704-
35705-
We are gradually onboarding support for more sources. If you have any
35706-
35707-
feedback, contact [Datadog Support](https://docs.datadoghq.com/help/).'
3570835702
/api/v2/query/timeseries:
3570935703
post:
3571035704
description: 'Query timeseries data across various data sources and
@@ -35745,12 +35739,6 @@ paths:
3574535739
operator: OR
3574635740
permissions:
3574735741
- timeseries_query
35748-
x-unstable: '**Note**: This endpoint is GA for Metrics, Real User Monitoring
35749-
(RUM), Cloud Cost Management, and Log Management data sources.
35750-
35751-
We are gradually onboarding support for more sources. If you have any
35752-
35753-
feedback, contact [Datadog Support](https://docs.datadoghq.com/help/).'
3575435742
/api/v2/remote_config/products/cws/agent_rules:
3575535743
get:
3575635744
description: Get the list of Cloud Security Management Threats Agent rules.

examples/v2/metrics/QueryScalarData.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
)
4646

4747
configuration = Configuration()
48-
configuration.unstable_operations["query_scalar_data"] = True
4948
with ApiClient(configuration) as api_client:
5049
api_instance = MetricsApi(api_client)
5150
response = api_instance.query_scalar_data(body=body)

examples/v2/metrics/QueryScalarData_3112571352.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
)
4747

4848
configuration = Configuration()
49-
configuration.unstable_operations["query_scalar_data"] = True
5049
with ApiClient(configuration) as api_client:
5150
api_instance = MetricsApi(api_client)
5251
response = api_instance.query_scalar_data(body=body)

examples/v2/metrics/QueryTimeseriesData.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@
4444
)
4545

4646
configuration = Configuration()
47-
configuration.unstable_operations["query_timeseries_data"] = True
4847
with ApiClient(configuration) as api_client:
4948
api_instance = MetricsApi(api_client)
5049
response = api_instance.query_timeseries_data(body=body)

examples/v2/metrics/QueryTimeseriesData_301142940.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
)
4646

4747
configuration = Configuration()
48-
configuration.unstable_operations["query_timeseries_data"] = True
4948
with ApiClient(configuration) as api_client:
5049
api_instance = MetricsApi(api_client)
5150
response = api_instance.query_timeseries_data(body=body)

src/datadog_api_client/configuration.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -269,8 +269,6 @@ def __init__(
269269
"v2.update_incident_integration": False,
270270
"v2.update_incident_todo": False,
271271
"v2.update_incident_type": False,
272-
"v2.query_scalar_data": False,
273-
"v2.query_timeseries_data": False,
274272
"v2.get_finding": False,
275273
"v2.list_findings": False,
276274
"v2.mute_findings": False,

tests/v2/features/metrics.feature

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,6 @@ Feature: Metrics
246246
@generated @skip @team:Datadog/timeseries-query
247247
Scenario: Query scalar data across multiple products returns "Bad Request" response
248248
Given a valid "appKeyAuth" key in the system
249-
And operation "QueryScalarData" enabled
250249
And new "QueryScalarData" request
251250
And body with value {"data": {"attributes": {"formulas": [{"formula": "a+b", "limit": {"count": 10, "order": "desc"}}], "from": 1568899800000, "queries": [{"aggregator": "avg", "data_source": "metrics", "query": "avg:system.cpu.user{*} by {env}"}], "to": 1568923200000}, "type": "scalar_request"}}
252251
When the request is sent
@@ -255,7 +254,6 @@ Feature: Metrics
255254
@generated @skip @team:Datadog/timeseries-query
256255
Scenario: Query scalar data across multiple products returns "OK" response
257256
Given a valid "appKeyAuth" key in the system
258-
And operation "QueryScalarData" enabled
259257
And new "QueryScalarData" request
260258
And body with value {"data": {"attributes": {"formulas": [{"formula": "a+b", "limit": {"count": 10, "order": "desc"}}], "from": 1568899800000, "queries": [{"aggregator": "avg", "data_source": "metrics", "query": "avg:system.cpu.user{*} by {env}"}], "to": 1568923200000}, "type": "scalar_request"}}
261259
When the request is sent
@@ -264,7 +262,6 @@ Feature: Metrics
264262
@generated @skip @team:Datadog/timeseries-query
265263
Scenario: Query timeseries data across multiple products returns "Bad Request" response
266264
Given a valid "appKeyAuth" key in the system
267-
And operation "QueryTimeseriesData" enabled
268265
And new "QueryTimeseriesData" request
269266
And body with value {"data": {"attributes": {"formulas": [{"formula": "a+b", "limit": {"count": 10, "order": "desc"}}], "from": 1568899800000, "interval": 5000, "queries": [{"data_source": "metrics", "query": "avg:system.cpu.user{*} by {env}"}], "to": 1568923200000}, "type": "timeseries_request"}}
270267
When the request is sent
@@ -273,7 +270,6 @@ Feature: Metrics
273270
@generated @skip @team:Datadog/timeseries-query
274271
Scenario: Query timeseries data across multiple products returns "OK" response
275272
Given a valid "appKeyAuth" key in the system
276-
And operation "QueryTimeseriesData" enabled
277273
And new "QueryTimeseriesData" request
278274
And body with value {"data": {"attributes": {"formulas": [{"formula": "a+b", "limit": {"count": 10, "order": "desc"}}], "from": 1568899800000, "interval": 5000, "queries": [{"data_source": "metrics", "query": "avg:system.cpu.user{*} by {env}"}], "to": 1568923200000}, "type": "timeseries_request"}}
279275
When the request is sent
@@ -300,7 +296,6 @@ Feature: Metrics
300296
@team:Datadog/timeseries-query
301297
Scenario: Scalar cross product query returns "Bad Request" response
302298
Given a valid "appKeyAuth" key in the system
303-
And operation "QueryScalarData" enabled
304299
And new "QueryScalarData" request
305300
And body with value {"data": {"attributes": {"formulas": [{"formula": "a+b", "limit": {"count": 10, "order": "desc"}}], "from": 1568899800000, "queries": [{"aggregator": "avg", "data_source": "metrics", "query": "avg:system.cpu.user{*}", "name": "a"}], "to": 1568923200000}, "type": "scalar_request"}}
306301
When the request is sent
@@ -309,7 +304,6 @@ Feature: Metrics
309304
@team:Datadog/timeseries-query
310305
Scenario: Scalar cross product query returns "OK" response
311306
Given a valid "appKeyAuth" key in the system
312-
And operation "QueryScalarData" enabled
313307
And new "QueryScalarData" request
314308
And body with value {"data": {"attributes": {"formulas": [{"formula": "a", "limit": {"count": 10, "order": "desc"}}], "from": {{ timestamp('now - 1h') }}000, "queries": [{"aggregator": "avg", "data_source": "metrics", "query": "avg:system.cpu.user{*}", "name": "a"}], "to": {{ timestamp('now') }}000}, "type": "scalar_request"}}
315309
When the request is sent
@@ -374,7 +368,6 @@ Feature: Metrics
374368
@skip @team:Datadog/timeseries-query
375369
Scenario: Timeseries cross product query returns "Bad Request" response
376370
Given a valid "appKeyAuth" key in the system
377-
And operation "QueryTimeseriesData" enabled
378371
And new "QueryTimeseriesData" request
379372
And body with value {"data": {"attributes": {"formulas": [{"formula": "a+b", "limit": {"count": 10, "order": "desc"}}], "from": {{ timestamp('now - 1h') }}, "interval": 5000, "queries": [{"data_source": "metrics", "query": "avg:system.cpu.user{*}"}], "to": {{ timestamp('now') }}}, "type": "timeseries_rquest"}}
380373
When the request is sent
@@ -383,7 +376,6 @@ Feature: Metrics
383376
@team:Datadog/timeseries-query
384377
Scenario: Timeseries cross product query returns "OK" response
385378
Given a valid "appKeyAuth" key in the system
386-
And operation "QueryTimeseriesData" enabled
387379
And new "QueryTimeseriesData" request
388380
And body with value {"data": {"attributes": {"formulas": [{"formula": "a", "limit": {"count": 10, "order": "desc"}}], "from": {{ timestamp('now - 1h') }}000, "interval": 5000, "queries": [{"data_source": "metrics", "query": "avg:datadog.estimated_usage.metrics.custom{*}", "name": "a"}], "to": {{ timestamp('now') }}000}, "type": "timeseries_request"}}
389381
When the request is sent

0 commit comments

Comments
 (0)