Skip to content

Commit 2f14991

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update limit information for cross-product event queries (#2008)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 7fbaaf7 commit 2f14991

File tree

3 files changed

+14
-8
lines changed

3 files changed

+14
-8
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:19.527536",
8-
"spec_repo_commit": "848af7a9"
7+
"regenerated": "2024-06-19 10:10:09.090441",
8+
"spec_repo_commit": "4edb50e4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-06-18 16:37:19.544104",
13-
"spec_repo_commit": "848af7a9"
12+
"regenerated": "2024-06-19 10:10:09.107922",
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'

src/datadog_api_client/v2/model/events_group_by.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class EventsGroupBy(ModelNormal):
2121
validations = {
2222
"limit": {
23-
"inclusive_maximum": 2147483647,
23+
"inclusive_maximum": 10000,
2424
},
2525
}
2626

@@ -53,7 +53,8 @@ def __init__(
5353
:param facet: The facet by which to split groups.
5454
:type facet: str
5555
56-
:param limit: The maximum number of groups to return.
56+
:param limit: The maximum buckets to return for this group by. Note: at most 10000 buckets are allowed.
57+
If grouping by multiple facets, the product of limits must not exceed 10000.
5758
:type limit: int, optional
5859
5960
:param sort: The dimension by which to sort a query's results.

0 commit comments

Comments
 (0)