Skip to content

Commit c3259c4

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

File tree

7 files changed

+15
-31
lines changed

7 files changed

+15
-31
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:15.162688",
8-
"spec_repo_commit": "3ebe762b"
7+
"regenerated": "2024-12-12 15:23:55.421590",
8+
"spec_repo_commit": "222e1f81"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-12-12 14:27:15.181601",
13-
"spec_repo_commit": "3ebe762b"
12+
"regenerated": "2024-12-12 15:23:55.452691",
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:
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

cassettes/features/v1/dashboards/Create-a-new-dashboard-with-logs-pattern-stream-list-stream-widget.yml

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v1/dashboards/CreateDashboard_1039800684.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
DatadogAPIClient::V1::ListStreamColumn.new({
2121
width: DatadogAPIClient::V1::ListStreamColumnWidth::AUTO,
2222
field: "message",
23-
is_clustering_pattern_field_path: true,
2423
}),
2524
],
2625
query: DatadogAPIClient::V1::ListStreamQuery.new({

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"

lib/datadog_api_client/v1/models/list_stream_column.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,6 @@ class ListStreamColumn
2424
# Widget column field.
2525
attr_reader :field
2626

27-
# Identifies the clustering pattern field column, usable only with logs_pattern_stream.
28-
attr_accessor :is_clustering_pattern_field_path
29-
3027
# Widget column width.
3128
attr_reader :width
3229

@@ -37,7 +34,6 @@ class ListStreamColumn
3734
def self.attribute_map
3835
{
3936
:'field' => :'field',
40-
:'is_clustering_pattern_field_path' => :'is_clustering_pattern_field_path',
4137
:'width' => :'width'
4238
}
4339
end
@@ -47,7 +43,6 @@ def self.attribute_map
4743
def self.openapi_types
4844
{
4945
:'field' => :'String',
50-
:'is_clustering_pattern_field_path' => :'Boolean',
5146
:'width' => :'ListStreamColumnWidth'
5247
}
5348
end
@@ -74,10 +69,6 @@ def initialize(attributes = {})
7469
self.field = attributes[:'field']
7570
end
7671

77-
if attributes.key?(:'is_clustering_pattern_field_path')
78-
self.is_clustering_pattern_field_path = attributes[:'is_clustering_pattern_field_path']
79-
end
80-
8172
if attributes.key?(:'width')
8273
self.width = attributes[:'width']
8374
end
@@ -139,7 +130,6 @@ def ==(o)
139130
return true if self.equal?(o)
140131
self.class == o.class &&
141132
field == o.field &&
142-
is_clustering_pattern_field_path == o.is_clustering_pattern_field_path &&
143133
width == o.width &&
144134
additional_properties == o.additional_properties
145135
end
@@ -148,7 +138,7 @@ def ==(o)
148138
# @return [Integer] Hash code
149139
# @!visibility private
150140
def hash
151-
[field, is_clustering_pattern_field_path, width, additional_properties].hash
141+
[field, width, additional_properties].hash
152142
end
153143
end
154144
end

0 commit comments

Comments
 (0)