Skip to content

Commit acd28e1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update limit information for cross-product event queries (#1864)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 06788d9 commit acd28e1

File tree

3 files changed

+16
-10
lines changed

3 files changed

+16
-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-06-18 16:37:21.936295",
8-
"spec_repo_commit": "848af7a9"
7+
"regenerated": "2024-06-19 10:10:07.383265",
8+
"spec_repo_commit": "4edb50e4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-06-18 16:37:21.954135",
13-
"spec_repo_commit": "848af7a9"
12+
"regenerated": "2024-06-19 10:10:07.400551",
13+
"spec_repo_commit": "4edb50e4"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7402,10 +7402,15 @@ components:
74027402
example: '@error.type'
74037403
type: string
74047404
limit:
7405-
description: The maximum number of groups to return.
7405+
default: 10
7406+
description: 'The maximum buckets to return for this group by. Note: at
7407+
most 10000 buckets are allowed.
7408+
7409+
If grouping by multiple facets, the product of limits must not exceed
7410+
10000.'
74067411
example: 10
74077412
format: int32
7408-
maximum: 2147483647
7413+
maximum: 10000
74097414
type: integer
74107415
sort:
74117416
$ref: '#/components/schemas/EventsGroupBySort'

lib/datadog_api_client/v2/models/events_group_by.rb

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@ class EventsGroupBy
2424
# The facet by which to split groups.
2525
attr_reader :facet
2626

27-
# The maximum number of groups to return.
27+
# The maximum buckets to return for this group by. Note: at most 10000 buckets are allowed.
28+
# If grouping by multiple facets, the product of limits must not exceed 10000.
2829
attr_reader :limit
2930

3031
# The dimension by which to sort a query's results.
@@ -84,7 +85,7 @@ def initialize(attributes = {})
8485
# @!visibility private
8586
def valid?
8687
return false if @facet.nil?
87-
return false if !@limit.nil? && @limit > 2147483647
88+
return false if !@limit.nil? && @limit > 10000
8889
true
8990
end
9091

@@ -102,8 +103,8 @@ def facet=(facet)
102103
# @param limit [Object] Object to be assigned
103104
# @!visibility private
104105
def limit=(limit)
105-
if !limit.nil? && limit > 2147483647
106-
fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 2147483647.'
106+
if !limit.nil? && limit > 10000
107+
fail ArgumentError, 'invalid value for "limit", must be smaller than or equal to 10000.'
107108
end
108109
@limit = limit
109110
end

0 commit comments

Comments
 (0)