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.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@
request_type: DatadogAPIClient::V1::TopologyRequestType::TOPOLOGY,
query: DatadogAPIClient::V1::TopologyQueryDataStreams.new({
data_source: DatadogAPIClient::V1::TopologyQueryDataStreamsDataSource::DATA_STREAMS,
service: "",
filters: [
"env:prod",
],
Expand Down
1 change: 0 additions & 1 deletion features/v1/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
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 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
17 changes: 3 additions & 14 deletions lib/datadog_api_client/v1/models/topology_query_data_streams.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@ class TopologyQueryDataStreams
# Your environment and primary tag (or * if enabled for your account).
attr_reader :filters

# A search string for filtering services. When set, this replaces the `service` field.
# A search string for filtering services. Replaces the deprecated `service` field.
attr_accessor :query_string

# (deprecated) Name of the service. Leave this empty and use query_string instead.
attr_reader :service
# (deprecated) Name of the service. Use `query_string` instead.
attr_accessor :service

# Attribute mapping from ruby-style variable name to JSON key.
# @!visibility private
Expand Down Expand Up @@ -97,7 +97,6 @@ def valid?
return false if @data_source.nil?
return false if @filters.nil?
return false if @filters.length < 1
return false if @service.nil?
true
end

Expand All @@ -124,16 +123,6 @@ def filters=(filters)
@filters = filters
end

# Custom attribute writer method with validation
# @param service [Object] Object to be assigned
# @!visibility private
def service=(service)
if service.nil?
fail ArgumentError, 'invalid value for "service", service cannot be nil.'
end
@service = service
end

# Checks equality by comparing each attribute.
# @param o [Object] Object to be compared
# @!visibility private
Expand Down
Loading