Skip to content

Commit 963795d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 47af28a4 of spec repo
1 parent a54aae3 commit 963795d

File tree

7 files changed

+13
-37
lines changed

7 files changed

+13
-37
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-11 14:25:08.232155",
8-
"spec_repo_commit": "7a9d0200"
7+
"regenerated": "2024-12-11 19:25:30.832245",
8+
"spec_repo_commit": "47af28a4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-11 14:25:08.250711",
13-
"spec_repo_commit": "7a9d0200"
12+
"regenerated": "2024-12-11 19:25:30.851254",
13+
"spec_repo_commit": "47af28a4"
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:

examples/v1_dashboards_CreateDashboard_1039800684.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,7 @@ async fn main() {
2525
vec![ListStreamWidgetRequest::new(
2626
vec![
2727
ListStreamColumn::new("timestamp".to_string(), ListStreamColumnWidth::AUTO),
28-
ListStreamColumn::new("message".to_string(), ListStreamColumnWidth::AUTO)
29-
.is_clustering_pattern_field_path(true),
28+
ListStreamColumn::new("message".to_string(), ListStreamColumnWidth::AUTO),
3029
],
3130
ListStreamQuery::new(ListStreamSource::LOGS_PATTERN_STREAM, "".to_string())
3231
.clustering_pattern_field_path("message".to_string())

src/datadogV1/model/model_list_stream_column.rs

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ pub struct ListStreamColumn {
1414
/// Widget column field.
1515
#[serde(rename = "field")]
1616
pub field: String,
17-
/// Identifies the clustering pattern field column, usable only with logs_pattern_stream.
18-
#[serde(rename = "is_clustering_pattern_field_path")]
19-
pub is_clustering_pattern_field_path: Option<bool>,
2017
/// Widget column width.
2118
#[serde(rename = "width")]
2219
pub width: crate::datadogV1::model::ListStreamColumnWidth,
@@ -34,18 +31,12 @@ impl ListStreamColumn {
3431
) -> ListStreamColumn {
3532
ListStreamColumn {
3633
field,
37-
is_clustering_pattern_field_path: None,
3834
width,
3935
additional_properties: std::collections::BTreeMap::new(),
4036
_unparsed: false,
4137
}
4238
}
4339

44-
pub fn is_clustering_pattern_field_path(mut self, value: bool) -> Self {
45-
self.is_clustering_pattern_field_path = Some(value);
46-
self
47-
}
48-
4940
pub fn additional_properties(
5041
mut self,
5142
value: std::collections::BTreeMap<String, serde_json::Value>,
@@ -73,7 +64,6 @@ impl<'de> Deserialize<'de> for ListStreamColumn {
7364
M: MapAccess<'a>,
7465
{
7566
let mut field: Option<String> = None;
76-
let mut is_clustering_pattern_field_path: Option<bool> = None;
7767
let mut width: Option<crate::datadogV1::model::ListStreamColumnWidth> = None;
7868
let mut additional_properties: std::collections::BTreeMap<
7969
String,
@@ -86,13 +76,6 @@ impl<'de> Deserialize<'de> for ListStreamColumn {
8676
"field" => {
8777
field = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
8878
}
89-
"is_clustering_pattern_field_path" => {
90-
if v.is_null() {
91-
continue;
92-
}
93-
is_clustering_pattern_field_path =
94-
Some(serde_json::from_value(v).map_err(M::Error::custom)?);
95-
}
9679
"width" => {
9780
width = Some(serde_json::from_value(v).map_err(M::Error::custom)?);
9881
if let Some(ref _width) = width {
@@ -116,7 +99,6 @@ impl<'de> Deserialize<'de> for ListStreamColumn {
11699

117100
let content = ListStreamColumn {
118101
field,
119-
is_clustering_pattern_field_path,
120102
width,
121103
additional_properties,
122104
_unparsed,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-11-20T19:43:46.485Z
1+
2024-12-11T19:18:02.796Z

tests/scenarios/cassettes/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"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\"}}]}",
6+
"string": "{\"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\"}}]}",
77
"encoding": null
88
},
99
"headers": {
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"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",
22+
"string": "{\"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",
2323
"encoding": null
2424
},
2525
"headers": {
@@ -32,7 +32,7 @@
3232
"message": "OK"
3333
}
3434
},
35-
"recorded_at": "Wed, 20 Nov 2024 19:43:46 GMT"
35+
"recorded_at": "Wed, 11 Dec 2024 19:18:02 GMT"
3636
},
3737
{
3838
"request": {
@@ -43,11 +43,11 @@
4343
]
4444
},
4545
"method": "delete",
46-
"uri": "https://api.datadoghq.com/api/v1/dashboard/r75-hd7-sd9"
46+
"uri": "https://api.datadoghq.com/api/v1/dashboard/fue-7tr-ubw"
4747
},
4848
"response": {
4949
"body": {
50-
"string": "{\"deleted_dashboard_id\":\"r75-hd7-sd9\"}\n",
50+
"string": "{\"deleted_dashboard_id\":\"fue-7tr-ubw\"}\n",
5151
"encoding": null
5252
},
5353
"headers": {
@@ -60,7 +60,7 @@
6060
"message": "OK"
6161
}
6262
},
63-
"recorded_at": "Wed, 20 Nov 2024 19:43:46 GMT"
63+
"recorded_at": "Wed, 11 Dec 2024 19:18:02 GMT"
6464
}
6565
],
6666
"recorded_with": "VCR 6.0.0"

tests/scenarios/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"

0 commit comments

Comments
 (0)