You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
:param data_source: Source from which to query items to display in the stream.
74
79
:type data_source: ListStreamSource
75
80
81
+
:param event_size: Size to use to display an event.
82
+
:type event_size: WidgetEventSize, optional
83
+
76
84
:param group_by: Group by configuration for the List Stream Widget. Group by can be used only with logs_pattern_stream (up to 3 items) or logs_transaction_stream (one group by item is required) list stream source.
Copy file name to clipboardExpand all lines: src/datadog_api_client/v1/model/list_stream_source.py
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@ class ListStreamSource(ModelSimple):
16
16
"""
17
17
Source from which to query items to display in the stream.
18
18
19
-
:param value: If omitted defaults to "apm_issue_stream". Must be one of ["logs_stream", "audit_stream", "rum_issue_stream", "apm_issue_stream", "logs_pattern_stream", "logs_transaction_stream"].
19
+
:param value: If omitted defaults to "apm_issue_stream". Must be one of ["logs_stream", "audit_stream", "rum_issue_stream", "apm_issue_stream", "logs_pattern_stream", "logs_transaction_stream", "event_stream"].
20
20
:type value: str
21
21
"""
22
22
@@ -27,13 +27,15 @@ class ListStreamSource(ModelSimple):
with list_stream widget","widgets":[{"definition":{"requests":[{"columns":[{"field":"timestamp","width":"auto"}],"query":{"data_source":"event_stream","event_size":"l","query_string":""},"response_format":"event_list"}],"type":"list_stream"}}]}'
with list_stream widget","url":"/dashboard/zmh-rud-g4b/test-createanewdashboardwitheventstreamliststreamwidget-1675873086-with-liststre","created_at":"2023-02-08T16:18:06.512655+00:00","modified_at":"2023-02-08T16:18:06.512655+00:00","author_handle":"frog@datadoghq.com","widgets":[{"definition":{"requests":[{"query":{"query_string":"","data_source":"event_stream","event_size":"l"},"response_format":"event_list","columns":[{"field":"timestamp","width":"auto"}]}],"type":"list_stream"},"id":3303593204363469}],"layout_type":"ordered"}
Copy file name to clipboardExpand all lines: tests/v1/features/dashboards.feature
+11Lines changed: 11 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -204,6 +204,17 @@ Feature: Dashboards
204
204
And the response "widgets[0].definition.requests[0].apm_stats_query.service" is equal to "cassandra"
205
205
And the response "widgets[0].definition.requests[0].apm_stats_query.name" is equal to "cassandra.query"
206
206
207
+
@team:DataDog/dashboards
208
+
Scenario: Create a new dashboard with event_stream list_stream widget
209
+
Given new "CreateDashboard" request
210
+
And body with value {"layout_type": "ordered","title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns": [{"width": "auto","field": "timestamp"}],"query": {"data_source": "event_stream","query_string": "","event_size": "l"},"response_format": "event_list"}]}}]}
211
+
When the request is sent
212
+
Then the response status is 200 OK
213
+
And the response "widgets[0].definition.type" is equal to "list_stream"
214
+
And the response "widgets[0].definition.requests[0].response_format" is equal to "event_list"
215
+
And the response "widgets[0].definition.requests[0].query.data_source" is equal to "event_stream"
216
+
And the response "widgets[0].definition.requests[0].query.event_size" is equal to "l"
217
+
207
218
@team:DataDog/dashboards
208
219
Scenario: Create a new dashboard with event_stream widget
0 commit comments