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
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.4",
"regenerated": "2023-05-24 14:57:08.935141",
"spec_repo_commit": "a5ef3fab"
"regenerated": "2023-05-25 19:51:58.110605",
"spec_repo_commit": "e4c04414"
},
"v2": {
"apigentools_version": "1.6.4",
"regenerated": "2023-05-24 14:57:08.948020",
"spec_repo_commit": "a5ef3fab"
"regenerated": "2023-05-25 19:51:58.127182",
"spec_repo_commit": "e4c04414"
}
}
}
4 changes: 0 additions & 4 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4289,10 +4289,6 @@ components:
description: Widget query.
example: '@service:app'
type: string
show_year:
description: Option to display the year in the date column. To be used with
the `event_stream`.
type: boolean
storage:
description: Option for storage location. Feature in Private Beta.
example: indexes
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"2023-05-23T16:19:21.371Z"
"2023-02-08T16:18:06.266Z"
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@
},
"entries": [
{
"_id": "3b2bfad3f58d6875c744251ff9e36f51",
"_id": "e13a56fb8e7ecc8fcccd1dc11cfaf098",
"_order": 0,
"cache": {},
"request": {
"bodySize": 371,
"bodySize": 354,
"cookies": [],
"headers": [
{
Expand All @@ -26,23 +26,23 @@
"value": "application/json"
}
],
"headersSize": 557,
"headersSize": 559,
"httpVersion": "HTTP/1.1",
"method": "POST",
"postData": {
"mimeType": "application/json",
"params": [],
"text": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1684858761 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"show_year\":true},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}"
"text": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1675873086 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\"}}]}"
},
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/dashboard"
},
"response": {
"bodySize": 785,
"bodySize": 768,
"content": {
"mimeType": "application/json",
"size": 785,
"text": "{\"id\":\"s56-ph7-gmi\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1684858761 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/s56-ph7-gmi/test-createanewdashboardwitheventstreamliststreamwidget-1684858761-with-liststre\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"event_stream\",\"event_size\":\"l\",\"query_string\":\"\",\"show_year\":true},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":3197043212239739}],\"notify_list\":null,\"created_at\":\"2023-05-23T16:19:21.576643+00:00\",\"modified_at\":\"2023-05-23T16:19:21.576643+00:00\",\"restricted_roles\":[]}\n"
"size": 768,
"text": "{\"notify_list\":null,\"description\":null,\"restricted_roles\":[],\"author_name\":null,\"template_variables\":null,\"is_read_only\":false,\"id\":\"zmh-rud-g4b\",\"title\":\"Test-Create_a_new_dashboard_with_event_stream_list_stream_widget-1675873086 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\"}\n"
},
"cookies": [],
"headers": [
Expand All @@ -51,17 +51,17 @@
"value": "application/json"
}
],
"headersSize": 517,
"headersSize": 490,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-05-23T16:19:21.388Z",
"time": 246
"startedDateTime": "2023-02-08T16:18:06.275Z",
"time": 272
},
{
"_id": "a93850478692fdce320fae4670782faa",
"_id": "ee1b2016b8d93d3f4959f703304bf7c6",
"_order": 0,
"cache": {},
"request": {
Expand All @@ -74,18 +74,18 @@
"value": "application/json"
}
],
"headersSize": 518,
"headersSize": 520,
"httpVersion": "HTTP/1.1",
"method": "DELETE",
"queryString": [],
"url": "https://api.datadoghq.com/api/v1/dashboard/s56-ph7-gmi"
"url": "https://api.datadoghq.com/api/v1/dashboard/zmh-rud-g4b"
},
"response": {
"bodySize": 39,
"content": {
"mimeType": "application/json",
"size": 39,
"text": "{\"deleted_dashboard_id\":\"s56-ph7-gmi\"}\n"
"text": "{\"deleted_dashboard_id\":\"zmh-rud-g4b\"}\n"
},
"cookies": [],
"headers": [
Expand All @@ -94,14 +94,14 @@
"value": "application/json"
}
],
"headersSize": 516,
"headersSize": 489,
"httpVersion": "HTTP/1.1",
"redirectURL": "",
"status": 200,
"statusText": "OK"
},
"startedDateTime": "2023-05-23T16:19:21.645Z",
"time": 173
"startedDateTime": "2023-02-08T16:18:06.574Z",
"time": 215
}
],
"pages": [],
Expand Down
1 change: 0 additions & 1 deletion examples/v1/dashboards/CreateDashboard_2432046716.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ const params: v1.DashboardsApiCreateDashboardRequest = {
dataSource: "event_stream",
queryString: "",
eventSize: "l",
showYear: true,
},
responseFormat: "event_list",
},
Expand Down
3 changes: 1 addition & 2 deletions features/v1/dashboards.feature
Original file line number Diff line number Diff line change
Expand Up @@ -261,14 +261,13 @@ Feature: Dashboards
@team:DataDog/dashboards-backend
Scenario: Create a new dashboard with event_stream list_stream widget
Given new "CreateDashboard" request
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", "show_year": true},"response_format": "event_list"}]}}]}
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"}]}}]}
When the request is sent
Then the response status is 200 OK
And the response "widgets[0].definition.type" is equal to "list_stream"
And the response "widgets[0].definition.requests[0].response_format" is equal to "event_list"
And the response "widgets[0].definition.requests[0].query.data_source" is equal to "event_stream"
And the response "widgets[0].definition.requests[0].query.event_size" is equal to "l"
And the response "widgets[0].definition.requests[0].query.show_year" is equal to true

@team:DataDog/dashboards-backend
Scenario: Create a new dashboard with event_stream widget
Expand Down
8 changes: 0 additions & 8 deletions packages/datadog-api-client-v1/models/ListStreamQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@ export class ListStreamQuery {
* Widget query.
*/
"queryString": string;
/**
* Option to display the year in the date column. To be used with the `event_stream`.
*/
"showYear"?: boolean;
/**
* Option for storage location. Feature in Private Beta.
*/
Expand Down Expand Up @@ -82,10 +78,6 @@ export class ListStreamQuery {
type: "string",
required: true,
},
showYear: {
baseName: "show_year",
type: "boolean",
},
storage: {
baseName: "storage",
type: "string",
Expand Down