Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23219,17 +23219,17 @@ components:
minItems: 1
type: array
query_string:
description: A search string for filtering services. When set, this replaces the `service` field.
description: A search string for filtering services. Replaces the deprecated `service` field.
example: "service:myservice"
type: string
service:
description: (deprecated) Name of the service. Leave this empty and use query_string instead.
deprecated: true
description: (deprecated) Name of the service. Use `query_string` instead.
example: myservice
type: string
required:
- data_source
- filters
- service
type: object
TopologyQueryDataStreamsDataSource:
description: Name of the data source.
Expand Down
1 change: 0 additions & 1 deletion examples/v1/dashboards/CreateDashboard_2815497946.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@
request_type=TopologyRequestType.TOPOLOGY,
query=TopologyQueryDataStreams(
data_source=TopologyQueryDataStreamsDataSource.DATA_STREAMS,
service="",
filters=[
"env:prod",
],
Expand Down
11 changes: 6 additions & 5 deletions src/datadog_api_client/v1/model/topology_query_data_streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def __init__(
self_,
data_source: TopologyQueryDataStreamsDataSource,
filters: List[str],
service: str,
query_string: Union[str, UnsetType] = unset,
service: Union[str, UnsetType] = unset,
**kwargs,
):
"""
Expand All @@ -65,16 +65,17 @@ def __init__(
:param filters: Your environment and primary tag (or * if enabled for your account).
:type filters: [str]

:param query_string: A search string for filtering services. When set, this replaces the ``service`` field.
:param query_string: A search string for filtering services. Replaces the deprecated ``service`` field.
:type query_string: str, optional

:param service: (deprecated) Name of the service. Leave this empty and use query_string instead.
:type service: str
:param service: (deprecated) Name of the service. Use ``query_string`` instead. **Deprecated**.
:type service: str, optional
"""
if query_string is not unset:
kwargs["query_string"] = query_string
if service is not unset:
kwargs["service"] = service
super().__init__(kwargs)

self_.data_source = data_source
self_.filters = filters
self_.service = service
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@
"filters": [
"env:prod"
],
"query_string": "service:myservice",
"service": ""
"query_string": "service:myservice"
},
"request_type": "topology"
}
Expand Down
5 changes: 2 additions & 3 deletions tests/generated-test/test-server-data/v1/dashboards.json
Original file line number Diff line number Diff line change
Expand Up @@ -10665,8 +10665,7 @@
"filters": [
"env:prod"
],
"query_string": "service:myservice",
"service": ""
"query_string": "service:myservice"
},
"request_type": "topology"
}
Expand Down Expand Up @@ -10694,7 +10693,7 @@
"response": {
"body": {
"encoding": "text",
"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\":[]}"
"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\":[]}"
},
"headers": {
"content-type": "application/json"
Expand Down
1 change: 0 additions & 1 deletion tests/v1/features/dashboards.feature
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,6 @@ Feature: Dashboards
And the response "widgets[0].definition.type" is equal to "topology_map"
And the response "widgets[0].definition.requests[0].request_type" is equal to "topology"
And the response "widgets[0].definition.requests[0].query.data_source" is equal to "data_streams"
And the response "widgets[0].definition.requests[0].query.service" is equal to ""
And the response "widgets[0].definition.requests[0].query.filters" is equal to ["env:prod"]
And the response "widgets[0].definition.requests[0].query.query_string" is equal to "service:myservice"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"request_type": "topology",
"query": {
"data_source": "data_streams",
"service": "",
"filters": ["env:prod"],
"query_string": "service:myservice"
}
Expand Down
Loading