Skip to content

Commit d446f78

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 222e1f81 of spec repo
1 parent e181590 commit d446f78

File tree

7 files changed

+14
-35
lines changed

7 files changed

+14
-35
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:18.166809",
8-
"spec_repo_commit": "3ebe762b"
7+
"regenerated": "2024-12-12 15:24:01.062659",
8+
"spec_repo_commit": "222e1f81"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-12 14:27:18.187622",
13-
"spec_repo_commit": "3ebe762b"
12+
"regenerated": "2024-12-12 15:24:01.081080",
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:

examples/v1/dashboards/CreateDashboard_1039800684.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@
3434
ListStreamColumn(
3535
width=ListStreamColumnWidth.AUTO,
3636
field="message",
37-
is_clustering_pattern_field_path=True,
3837
),
3938
],
4039
query=ListStreamQuery(

src/datadog_api_client/v1/model/list_stream_column.py

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@
33
# Copyright 2019-Present Datadog, Inc.
44
from __future__ import annotations
55

6-
from typing import Union, TYPE_CHECKING
6+
from typing import TYPE_CHECKING
77

88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11-
unset,
12-
UnsetType,
1311
)
1412

1513

@@ -24,37 +22,24 @@ def openapi_types(_):
2422

2523
return {
2624
"field": (str,),
27-
"is_clustering_pattern_field_path": (bool,),
2825
"width": (ListStreamColumnWidth,),
2926
}
3027

3128
attribute_map = {
3229
"field": "field",
33-
"is_clustering_pattern_field_path": "is_clustering_pattern_field_path",
3430
"width": "width",
3531
}
3632

37-
def __init__(
38-
self_,
39-
field: str,
40-
width: ListStreamColumnWidth,
41-
is_clustering_pattern_field_path: Union[bool, UnsetType] = unset,
42-
**kwargs,
43-
):
33+
def __init__(self_, field: str, width: ListStreamColumnWidth, **kwargs):
4434
"""
4535
Widget column.
4636
4737
:param field: Widget column field.
4838
:type field: str
4939
50-
:param is_clustering_pattern_field_path: Identifies the clustering pattern field column, usable only with logs_pattern_stream.
51-
:type is_clustering_pattern_field_path: bool, optional
52-
5340
:param width: Widget column width.
5441
:type width: ListStreamColumnWidth
5542
"""
56-
if is_clustering_pattern_field_path is not unset:
57-
kwargs["is_clustering_pattern_field_path"] = is_clustering_pattern_field_path
5843
super().__init__(kwargs)
5944

6045
self_.field = field
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/v1/cassettes/test_scenarios/test_create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1732131826
4-
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"}}]}'
3+
body: '{"layout_type":"ordered","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1733944682
4+
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"}}]}'
55
headers:
66
accept:
77
- application/json
@@ -11,9 +11,9 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v1/dashboard
1212
response:
1313
body:
14-
string: '{"id":"r75-hd7-sd9","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1732131826
14+
string: '{"id":"fue-7tr-ubw","title":"Test-Create_a_new_dashboard_with_logs_pattern_stream_list_stream_widget-1733944682
1515
with list_stream widget","description":null,"author_handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","author_name":"CI
16-
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":[]}
16+
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":[]}
1717
1818
'
1919
headers:
@@ -28,10 +28,10 @@ interactions:
2828
accept:
2929
- application/json
3030
method: DELETE
31-
uri: https://api.datadoghq.com/api/v1/dashboard/r75-hd7-sd9
31+
uri: https://api.datadoghq.com/api/v1/dashboard/fue-7tr-ubw
3232
response:
3333
body:
34-
string: '{"deleted_dashboard_id":"r75-hd7-sd9"}
34+
string: '{"deleted_dashboard_id":"fue-7tr-ubw"}
3535
3636
'
3737
headers:

tests/v1/features/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)