Skip to content

Commit 51358ec

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Remove unnecessary field in list stream column config (#1958)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 26c191b commit 51358ec

File tree

7 files changed

+19
-33
lines changed

7 files changed

+19
-33
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-12-12 14:27:07.718319",
8-
"spec_repo_commit": "3ebe762b"
7+
"regenerated": "2024-12-12 15:23:57.766531",
8+
"spec_repo_commit": "222e1f81"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-12 14:27:07.738249",
13-
"spec_repo_commit": "3ebe762b"
12+
"regenerated": "2024-12-12 15:23:57.785483",
13+
"spec_repo_commit": "222e1f81"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4654,11 +4654,6 @@ components:
46544654
description: Widget column field.
46554655
example: content
46564656
type: string
4657-
is_clustering_pattern_field_path:
4658-
description: Identifies the clustering pattern field column, usable only
4659-
with logs_pattern_stream.
4660-
example: true
4661-
type: boolean
46624657
width:
46634658
$ref: '#/components/schemas/ListStreamColumnWidth'
46644659
required:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-20T19:43:46.485Z"
1+
"2024-12-11T19:18:02.796Z"

cassettes/v1/Dashboards_1335235736/Create-a-new-dashboard-with-logs_pattern_stream-list_stream-widget_2130145754/recording.har

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"entries": [
1010
{
11-
"_id": "efba31bdb3f1473fe30b1697b2cc04b1",
11+
"_id": "ae4564ca0ff7f4933223c9bf59642d26",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 501,
15+
"bodySize": 461,
1616
"cookies": [],
1717
"headers": [
1818
{
@@ -32,17 +32,17 @@
3232
"postData": {
3333
"mimeType": "application/json",
3434
"params": [],
35-
"text": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1732131826 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"message\",\"is_clustering_pattern_field_path\":true,\"width\":\"auto\"}],\"query\":{\"clustering_pattern_field_path\":\"message\",\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}"
35+
"text": "{\"layout_type\":\"ordered\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1733944682 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"message\",\"width\":\"auto\"}],\"query\":{\"clustering_pattern_field_path\":\"message\",\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"}}]}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/dashboard"
3939
},
4040
"response": {
41-
"bodySize": 941,
41+
"bodySize": 901,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 941,
45-
"text": "{\"id\":\"r75-hd7-sd9\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1732131826 with list_stream widget\",\"description\":null,\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/r75-hd7-sd9/test-createanewdashboardwithlogspatternstreamliststreamwidget-1732131826-with-li\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"message\",\"is_clustering_pattern_field_path\":true,\"width\":\"auto\"}],\"query\":{\"clustering_pattern_field_path\":\"message\",\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":6154246442450384}],\"notify_list\":null,\"created_at\":\"2024-11-20T19:43:46.871965+00:00\",\"modified_at\":\"2024-11-20T19:43:46.871965+00:00\",\"restricted_roles\":[]}\n"
44+
"size": 901,
45+
"text": "{\"id\":\"fue-7tr-ubw\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1733944682 with list_stream widget\",\"description\":null,\"author_handle\":\"9919ec9b-ebc7-49ee-8dc8-03626e717cca\",\"author_name\":\"CI Account\",\"layout_type\":\"ordered\",\"url\":\"/dashboard/fue-7tr-ubw/test-createanewdashboardwithlogspatternstreamliststreamwidget-1733944682-with-li\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"},{\"field\":\"message\",\"width\":\"auto\"}],\"query\":{\"clustering_pattern_field_path\":\"message\",\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4674889262305585}],\"notify_list\":null,\"created_at\":\"2024-12-11T19:18:03.039937+00:00\",\"modified_at\":\"2024-12-11T19:18:03.039937+00:00\",\"restricted_roles\":[]}\n"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-11-20T19:43:46.494Z",
61-
"time": 484
60+
"startedDateTime": "2024-12-11T19:18:02.804Z",
61+
"time": 321
6262
},
6363
{
64-
"_id": "d71f08f76763c0e7e498162bb5fc9fea",
64+
"_id": "6f623174c3b7b7f8f17ef055a28e2d98",
6565
"_order": 0,
6666
"cache": {},
6767
"request": {
@@ -78,14 +78,14 @@
7878
"httpVersion": "HTTP/1.1",
7979
"method": "DELETE",
8080
"queryString": [],
81-
"url": "https://api.datadoghq.com/api/v1/dashboard/r75-hd7-sd9"
81+
"url": "https://api.datadoghq.com/api/v1/dashboard/fue-7tr-ubw"
8282
},
8383
"response": {
8484
"bodySize": 39,
8585
"content": {
8686
"mimeType": "application/json",
8787
"size": 39,
88-
"text": "{\"deleted_dashboard_id\":\"r75-hd7-sd9\"}\n"
88+
"text": "{\"deleted_dashboard_id\":\"fue-7tr-ubw\"}\n"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -100,8 +100,8 @@
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2024-11-20T19:43:46.987Z",
104-
"time": 414
103+
"startedDateTime": "2024-12-11T19:18:03.134Z",
104+
"time": 344
105105
}
106106
],
107107
"pages": [],

examples/v1/dashboards/CreateDashboard_1039800684.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ const params: v1.DashboardsApiCreateDashboardRequest = {
2525
{
2626
width: "auto",
2727
field: "message",
28-
isClusteringPatternFieldPath: true,
2928
},
3029
],
3130
query: {

features/v1/dashboards.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,7 +534,7 @@ Feature: Dashboards
534534
@team:DataDog/dashboards-backend
535535
Scenario: Create a new dashboard with logs_pattern_stream list_stream widget
536536
Given new "CreateDashboard" request
537-
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"},{"width":"auto","field":"message", "is_clustering_pattern_field_path": true}],"query":{"data_source":"logs_pattern_stream","query_string":"","clustering_pattern_field_path":"message","group_by":[{"facet":"service"}]}, "response_format":"event_list"}]}}]}
537+
And body with value {"layout_type": "ordered", "title": "{{ unique }} with list_stream widget","widgets": [{"definition": {"type": "list_stream","requests": [{"columns":[{"width":"auto","field":"timestamp"},{"width":"auto","field":"message"}],"query":{"data_source":"logs_pattern_stream","query_string":"","clustering_pattern_field_path":"message","group_by":[{"facet":"service"}]}, "response_format":"event_list"}]}}]}
538538
When the request is sent
539539
Then the response status is 200 OK
540540
And the response "widgets[0].definition.requests[0].query.data_source" is equal to "logs_pattern_stream"

packages/datadog-api-client-v1/models/ListStreamColumn.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ export class ListStreamColumn {
1515
* Widget column field.
1616
*/
1717
"field": string;
18-
/**
19-
* Identifies the clustering pattern field column, usable only with logs_pattern_stream.
20-
*/
21-
"isClusteringPatternFieldPath"?: boolean;
2218
/**
2319
* Widget column width.
2420
*/
@@ -45,10 +41,6 @@ export class ListStreamColumn {
4541
type: "string",
4642
required: true,
4743
},
48-
isClusteringPatternFieldPath: {
49-
baseName: "is_clustering_pattern_field_path",
50-
type: "boolean",
51-
},
5244
width: {
5345
baseName: "width",
5446
type: "ListStreamColumnWidth",

0 commit comments

Comments
 (0)