Skip to content

Commit e4f6f25

Browse files
dd-octo-sts[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit cb42de3 of spec repo (#4339)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 584ebf3 commit e4f6f25

7 files changed

Lines changed: 12 additions & 16 deletions

File tree

‎.generator/schemas/v1/openapi.yaml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23219,17 +23219,17 @@ components:
2321923219
minItems: 1
2322023220
type: array
2322123221
query_string:
23222-
description: A search string for filtering services. When set, this replaces the `service` field.
23222+
description: A search string for filtering services. Replaces the deprecated `service` field.
2322323223
example: "service:myservice"
2322423224
type: string
2322523225
service:
23226-
description: (deprecated) Name of the service. Leave this empty and use query_string instead.
23226+
deprecated: true
23227+
description: (deprecated) Name of the service. Use `query_string` instead.
2322723228
example: myservice
2322823229
type: string
2322923230
required:
2323023231
- data_source
2323123232
- filters
23232-
- service
2323323233
type: object
2323423234
TopologyQueryDataStreamsDataSource:
2323523235
description: Name of the data source.

‎examples/v1/dashboards/CreateDashboard_2815497946.py‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@
4040
request_type=TopologyRequestType.TOPOLOGY,
4141
query=TopologyQueryDataStreams(
4242
data_source=TopologyQueryDataStreamsDataSource.DATA_STREAMS,
43-
service="",
4443
filters=[
4544
"env:prod",
4645
],

‎src/datadog_api_client/v1/model/topology_query_data_streams.py‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ def __init__(
5252
self_,
5353
data_source: TopologyQueryDataStreamsDataSource,
5454
filters: List[str],
55-
service: str,
5655
query_string: Union[str, UnsetType] = unset,
56+
service: Union[str, UnsetType] = unset,
5757
**kwargs,
5858
):
5959
"""
@@ -65,16 +65,17 @@ def __init__(
6565
:param filters: Your environment and primary tag (or * if enabled for your account).
6666
:type filters: [str]
6767
68-
:param query_string: A search string for filtering services. When set, this replaces the ``service`` field.
68+
:param query_string: A search string for filtering services. Replaces the deprecated ``service`` field.
6969
:type query_string: str, optional
7070
71-
:param service: (deprecated) Name of the service. Leave this empty and use query_string instead.
72-
:type service: str
71+
:param service: (deprecated) Name of the service. Use ``query_string`` instead. **Deprecated**.
72+
:type service: str, optional
7373
"""
7474
if query_string is not unset:
7575
kwargs["query_string"] = query_string
76+
if service is not unset:
77+
kwargs["service"] = service
7678
super().__init__(kwargs)
7779

7880
self_.data_source = data_source
7981
self_.filters = filters
80-
self_.service = service

‎tests/generated-test/test-runner-data/v1/dashboards/create-a-new-dashboard-with-topology-map-data-streams-widget.json‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"filters": [
2929
"env:prod"
3030
],
31-
"query_string": "service:myservice",
32-
"service": ""
31+
"query_string": "service:myservice"
3332
},
3433
"request_type": "topology"
3534
}

‎tests/generated-test/test-server-data/v1/dashboards.json‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10665,8 +10665,7 @@
1066510665
"filters": [
1066610666
"env:prod"
1066710667
],
10668-
"query_string": "service:myservice",
10669-
"service": ""
10668+
"query_string": "service:myservice"
1067010669
},
1067110670
"request_type": "topology"
1067210671
}
@@ -10694,7 +10693,7 @@
1069410693
"response": {
1069510694
"body": {
1069610695
"encoding": "text",
10697-
"value": "{\"id\":\"whr-253-7we\",\"title\":\"Test-Create_a_new_dashboard_with_topology_map_data_streams_widget-1774030611\",\"description\":\"\",\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"free\",\"url\":\"/dashboard/whr-253-7we/test-createanewdashboardwithtopologymapdatastreamswidget-1774030611\",\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"data_streams\",\"filters\":[\"env:prod\"],\"query_string\":\"service:myservice\",\"service\":\"\"},\"request_type\":\"topology\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"topology_map\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":1843670487553482}],\"notify_list\":[],\"created_at\":\"2026-03-20T18:16:52.209473+00:00\",\"modified_at\":\"2026-03-20T18:16:52.209473+00:00\",\"restricted_roles\":[]}"
10696+
"value": "{\"id\":\"whr-253-7we\",\"title\":\"Test-Create_a_new_dashboard_with_topology_map_data_streams_widget-1774030611\",\"description\":\"\",\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"free\",\"url\":\"/dashboard/whr-253-7we/test-createanewdashboardwithtopologymapdatastreamswidget-1774030611\",\"template_variables\":[],\"widgets\":[{\"definition\":{\"requests\":[{\"query\":{\"data_source\":\"data_streams\",\"filters\":[\"env:prod\"],\"query_string\":\"service:myservice\"},\"request_type\":\"topology\"}],\"title\":\"\",\"title_align\":\"left\",\"title_size\":\"16\",\"type\":\"topology_map\"},\"layout\":{\"height\":15,\"width\":47,\"x\":0,\"y\":0},\"id\":1843670487553482}],\"notify_list\":[],\"created_at\":\"2026-03-20T18:16:52.209473+00:00\",\"modified_at\":\"2026-03-20T18:16:52.209473+00:00\",\"restricted_roles\":[]}"
1069810697
},
1069910698
"headers": {
1070010699
"content-type": "application/json"

‎tests/v1/features/dashboards.feature‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1258,7 +1258,6 @@ Feature: Dashboards
12581258
And the response "widgets[0].definition.type" is equal to "topology_map"
12591259
And the response "widgets[0].definition.requests[0].request_type" is equal to "topology"
12601260
And the response "widgets[0].definition.requests[0].query.data_source" is equal to "data_streams"
1261-
And the response "widgets[0].definition.requests[0].query.service" is equal to ""
12621261
And the response "widgets[0].definition.requests[0].query.filters" is equal to ["env:prod"]
12631262
And the response "widgets[0].definition.requests[0].query.query_string" is equal to "service:myservice"
12641263

‎tests/v1/features/dashboards_json_payload/topology_map_widget_data_streams.json‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
"request_type": "topology",
2020
"query": {
2121
"data_source": "data_streams",
22-
"service": "",
2322
"filters": ["env:prod"],
2423
"query_string": "service:myservice"
2524
}

0 commit comments

Comments
 (0)