Skip to content

Commit 0ae8f1c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 34905ccb of spec repo
1 parent 80aa3eb commit 0ae8f1c

File tree

8 files changed

+53
-19
lines changed

8 files changed

+53
-19
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-11-20 20:14:26.200446",
8-
"spec_repo_commit": "ebf27b5e"
7+
"regenerated": "2024-11-20 21:48:41.670836",
8+
"spec_repo_commit": "34905ccb"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-20 20:14:26.219169",
13-
"spec_repo_commit": "ebf27b5e"
12+
"regenerated": "2024-11-20 21:48:41.689729",
13+
"spec_repo_commit": "34905ccb"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4654,6 +4654,11 @@ 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
46574662
width:
46584663
$ref: '#/components/schemas/ListStreamColumnWidth'
46594664
required:
@@ -4733,6 +4738,12 @@ components:
47334738
ListStreamQuery:
47344739
description: Updated list stream widget.
47354740
properties:
4741+
clustering_pattern_field_path:
4742+
default: message
4743+
description: Specifies the field for logs pattern clustering. Usable only
4744+
with logs_pattern_stream.
4745+
example: message
4746+
type: string
47364747
compute:
47374748
description: Compute configuration for the List Stream Widget. Compute can
47384749
be used only with the logs_transaction_stream (from 1 to 5 items) list
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
"2024-11-15T19:32:46.627Z"
1+
"2024-11-20T19:43:46.485Z"

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": "89e48bc526401ef49327462de1319fdf",
11+
"_id": "efba31bdb3f1473fe30b1697b2cc04b1",
1212
"_order": 0,
1313
"cache": {},
1414
"request": {
15-
"bodySize": 384,
15+
"bodySize": 501,
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-1731699166 with list_stream widget\",\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"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-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\"}}]}"
3636
},
3737
"queryString": [],
3838
"url": "https://api.datadoghq.com/api/v1/dashboard"
3939
},
4040
"response": {
41-
"bodySize": 798,
41+
"bodySize": 941,
4242
"content": {
4343
"mimeType": "application/json",
44-
"size": 798,
45-
"text": "{\"id\":\"hem-inu-je6\",\"title\":\"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1731699166 with list_stream widget\",\"description\":null,\"author_handle\":\"frog@datadoghq.com\",\"author_name\":null,\"layout_type\":\"ordered\",\"url\":\"/dashboard/hem-inu-je6/test-createanewdashboardwithlogspatternstreamliststreamwidget-1731699166-with-li\",\"is_read_only\":false,\"template_variables\":null,\"widgets\":[{\"definition\":{\"requests\":[{\"columns\":[{\"field\":\"timestamp\",\"width\":\"auto\"}],\"query\":{\"data_source\":\"logs_pattern_stream\",\"group_by\":[{\"facet\":\"service\"}],\"query_string\":\"\"},\"response_format\":\"event_list\"}],\"type\":\"list_stream\"},\"id\":4012469646916199}],\"notify_list\":null,\"created_at\":\"2024-11-15T19:32:46.772627+00:00\",\"modified_at\":\"2024-11-15T19:32:46.772627+00:00\",\"restricted_roles\":[]}\n"
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"
4646
},
4747
"cookies": [],
4848
"headers": [
@@ -57,11 +57,11 @@
5757
"status": 200,
5858
"statusText": "OK"
5959
},
60-
"startedDateTime": "2024-11-15T19:32:46.633Z",
61-
"time": 214
60+
"startedDateTime": "2024-11-20T19:43:46.494Z",
61+
"time": 484
6262
},
6363
{
64-
"_id": "b6052546b3c5ba3824b5c192fda2fb63",
64+
"_id": "d71f08f76763c0e7e498162bb5fc9fea",
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/hem-inu-je6"
81+
"url": "https://api.datadoghq.com/api/v1/dashboard/r75-hd7-sd9"
8282
},
8383
"response": {
8484
"bodySize": 39,
8585
"content": {
8686
"mimeType": "application/json",
8787
"size": 39,
88-
"text": "{\"deleted_dashboard_id\":\"hem-inu-je6\"}\n"
88+
"text": "{\"deleted_dashboard_id\":\"r75-hd7-sd9\"}\n"
8989
},
9090
"cookies": [],
9191
"headers": [
@@ -100,8 +100,8 @@
100100
"status": 200,
101101
"statusText": "OK"
102102
},
103-
"startedDateTime": "2024-11-15T19:32:46.853Z",
104-
"time": 167
103+
"startedDateTime": "2024-11-20T19:43:46.987Z",
104+
"time": 414
105105
}
106106
],
107107
"pages": [],

examples/v1/dashboards/CreateDashboard_1039800684.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,16 @@ const params: v1.DashboardsApiCreateDashboardRequest = {
2222
width: "auto",
2323
field: "timestamp",
2424
},
25+
{
26+
width: "auto",
27+
field: "message",
28+
isClusteringPatternFieldPath: true,
29+
},
2530
],
2631
query: {
2732
dataSource: "logs_pattern_stream",
2833
queryString: "",
34+
clusteringPatternFieldPath: "message",
2935
groupBy: [
3036
{
3137
facet: "service",

features/v1/dashboards.feature

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -534,11 +534,12 @@ 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"}],"query":{"data_source":"logs_pattern_stream","query_string":"","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", "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"}]}}]}
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"
541541
And the response "widgets[0].definition.requests[0].query.group_by[0].facet" is equal to "service"
542+
And the response "widgets[0].definition.requests[0].query.clustering_pattern_field_path" is equal to "message"
542543

543544
@team:DataDog/dashboards-backend
544545
Scenario: Create a new dashboard with logs_stream list_stream widget and storage parameter

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ 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;
1822
/**
1923
* Widget column width.
2024
*/
@@ -41,6 +45,10 @@ export class ListStreamColumn {
4145
type: "string",
4246
required: true,
4347
},
48+
isClusteringPatternFieldPath: {
49+
baseName: "is_clustering_pattern_field_path",
50+
type: "boolean",
51+
},
4452
width: {
4553
baseName: "width",
4654
type: "ListStreamColumnWidth",

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1515
* Updated list stream widget.
1616
*/
1717
export class ListStreamQuery {
18+
/**
19+
* Specifies the field for logs pattern clustering. Usable only with logs_pattern_stream.
20+
*/
21+
"clusteringPatternFieldPath"?: string;
1822
/**
1923
* Compute configuration for the List Stream Widget. Compute can be used only with the logs_transaction_stream (from 1 to 5 items) list stream source.
2024
*/
@@ -64,6 +68,10 @@ export class ListStreamQuery {
6468
* @ignore
6569
*/
6670
static readonly attributeTypeMap: AttributeTypeMap = {
71+
clusteringPatternFieldPath: {
72+
baseName: "clustering_pattern_field_path",
73+
type: "string",
74+
},
6775
compute: {
6876
baseName: "compute",
6977
type: "Array<ListStreamComputeItems>",

0 commit comments

Comments
 (0)