Skip to content

Commit f8fbe0a

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Allow 4 group-bys for pattern viz (#1963)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent b7b4b9b commit f8fbe0a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
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-08-21 14:10:00.040648",
8-
"spec_repo_commit": "5bcbcb40"
7+
"regenerated": "2024-08-21 15:16:50.670612",
8+
"spec_repo_commit": "4470dfc1"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-21 14:10:00.067118",
13-
"spec_repo_commit": "5bcbcb40"
12+
"regenerated": "2024-08-21 15:16:50.697349",
13+
"spec_repo_commit": "4470dfc1"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4736,11 +4736,11 @@ components:
47364736
$ref: '#/components/schemas/WidgetEventSize'
47374737
group_by:
47384738
description: Group by configuration for the List Stream Widget. Group by
4739-
can be used only with logs_pattern_stream (up to 3 items) or logs_transaction_stream
4739+
can be used only with logs_pattern_stream (up to 4 items) or logs_transaction_stream
47404740
(one group by item is required) list stream source.
47414741
items:
47424742
$ref: '#/components/schemas/ListStreamGroupByItems'
4743-
maxItems: 3
4743+
maxItems: 4
47444744
type: array
47454745
indexes:
47464746
description: List of indexes.

lib/datadog_api_client/v1/models/list_stream_query.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class ListStreamQuery
3030
# Size to use to display an event.
3131
attr_accessor :event_size
3232

33-
# Group by configuration for the List Stream Widget. Group by can be used only with logs_pattern_stream (up to 3 items) or logs_transaction_stream (one group by item is required) list stream source.
33+
# Group by configuration for the List Stream Widget. Group by can be used only with logs_pattern_stream (up to 4 items) or logs_transaction_stream (one group by item is required) list stream source.
3434
attr_reader :group_by
3535

3636
# List of indexes.
@@ -141,7 +141,7 @@ def valid?
141141
return false if !@compute.nil? && @compute.length > 5
142142
return false if !@compute.nil? && @compute.length < 1
143143
return false if @data_source.nil?
144-
return false if !@group_by.nil? && @group_by.length > 3
144+
return false if !@group_by.nil? && @group_by.length > 4
145145
return false if @query_string.nil?
146146
true
147147
end
@@ -173,8 +173,8 @@ def data_source=(data_source)
173173
# @param group_by [Object] Object to be assigned
174174
# @!visibility private
175175
def group_by=(group_by)
176-
if !group_by.nil? && group_by.length > 3
177-
fail ArgumentError, 'invalid value for "group_by", number of items must be less than or equal to 3.'
176+
if !group_by.nil? && group_by.length > 4
177+
fail ArgumentError, 'invalid value for "group_by", number of items must be less than or equal to 4.'
178178
end
179179
@group_by = group_by
180180
end

0 commit comments

Comments
 (0)