Skip to content

Commit c24ca67

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Documenting Logs Aggregate API limits (group-by + paging) (#1283)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 44ca20c commit c24ca67

File tree

9 files changed

+23
-17
lines changed

9 files changed

+23
-17
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.5",
7-
"regenerated": "2023-08-17 17:20:40.199652",
8-
"spec_repo_commit": "357af604"
7+
"regenerated": "2023-08-17 19:37:29.403596",
8+
"spec_repo_commit": "bb17cef0"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-17 17:20:40.214370",
13-
"spec_repo_commit": "357af604"
12+
"regenerated": "2023-08-17 19:37:29.416739",
13+
"spec_repo_commit": "bb17cef0"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7844,7 +7844,8 @@ components:
78447844
description: Paging settings
78457845
properties:
78467846
cursor:
7847-
description: The returned paging point to use to get the next results
7847+
description: 'The returned paging point to use to get the next results.
7848+
Note: at most 1000 results can be paged.'
78487849
example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==
78497850
type: string
78507851
type: object
@@ -8329,7 +8330,11 @@ components:
83298330
$ref: '#/components/schemas/LogsGroupByHistogram'
83308331
limit:
83318332
default: 10
8332-
description: The maximum buckets to return for this group by
8333+
description: 'The maximum buckets to return for this group by. Note: at
8334+
most 10000 buckets are allowed.
8335+
8336+
If grouping by multiple facets, the product of limits must not exceed
8337+
10000.'
83338338
format: int64
83348339
type: integer
83358340
missing:
@@ -8344,7 +8349,7 @@ components:
83448349
LogsGroupByHistogram:
83458350
description: 'Used to perform a histogram computation (only for measure facets).
83468351

8347-
Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.'
8352+
Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval.'
83488353
properties:
83498354
interval:
83508355
description: The bin size of the histogram buckets
@@ -8722,7 +8727,7 @@ components:
87228727
LogsQueryOptions:
87238728
description: 'Global query options that are used during the query.
87248729

8725-
Note: You should only supply timezone or time offset but not both otherwise
8730+
Note: you should supply either timezone or time offset, but not both. Otherwise,
87268731
the query will fail.'
87278732
properties:
87288733
timeOffset:
@@ -8766,7 +8771,7 @@ components:
87668771
properties:
87678772
after:
87688773
description: 'The cursor to use to get the next results, if any. To make
8769-
the next request, use the same.
8774+
the next request, use the same
87708775

87718776
parameters with the addition of the `page[cursor]`.'
87728777
example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==

packages/datadog-api-client-v2/models/LogsAggregateRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export class LogsAggregateRequest {
2929
"groupBy"?: Array<LogsGroupBy>;
3030
/**
3131
* Global query options that are used during the query.
32-
* Note: You should only supply timezone or time offset but not both otherwise the query will fail.
32+
* Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
3333
*/
3434
"options"?: LogsQueryOptions;
3535
/**

packages/datadog-api-client-v2/models/LogsAggregateRequestPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
*/
1212
export class LogsAggregateRequestPage {
1313
/**
14-
* The returned paging point to use to get the next results
14+
* The returned paging point to use to get the next results. Note: at most 1000 results can be paged.
1515
*/
1616
"cursor"?: string;
1717

packages/datadog-api-client-v2/models/LogsGroupBy.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,12 @@ export class LogsGroupBy {
2020
"facet": string;
2121
/**
2222
* Used to perform a histogram computation (only for measure facets).
23-
* Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
23+
* Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval.
2424
*/
2525
"histogram"?: LogsGroupByHistogram;
2626
/**
27-
* The maximum buckets to return for this group by
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
*/
2930
"limit"?: number;
3031
/**

packages/datadog-api-client-v2/models/LogsGroupByHistogram.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
88

99
/**
1010
* Used to perform a histogram computation (only for measure facets).
11-
* Note: At most 100 buckets are allowed, the number of buckets is (max - min)/interval.
11+
* Note: at most 100 buckets are allowed, the number of buckets is (max - min)/interval.
1212
*/
1313
export class LogsGroupByHistogram {
1414
/**

packages/datadog-api-client-v2/models/LogsListRequest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export class LogsListRequest {
2020
"filter"?: LogsQueryFilter;
2121
/**
2222
* Global query options that are used during the query.
23-
* Note: You should only supply timezone or time offset but not both otherwise the query will fail.
23+
* Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
2424
*/
2525
"options"?: LogsQueryOptions;
2626
/**

packages/datadog-api-client-v2/models/LogsQueryOptions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
88

99
/**
1010
* Global query options that are used during the query.
11-
* Note: You should only supply timezone or time offset but not both otherwise the query will fail.
11+
* Note: you should supply either timezone or time offset, but not both. Otherwise, the query will fail.
1212
*/
1313
export class LogsQueryOptions {
1414
/**

packages/datadog-api-client-v2/models/LogsResponseMetadataPage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111
*/
1212
export class LogsResponseMetadataPage {
1313
/**
14-
* The cursor to use to get the next results, if any. To make the next request, use the same.
14+
* The cursor to use to get the next results, if any. To make the next request, use the same
1515
* parameters with the addition of the `page[cursor]`.
1616
*/
1717
"after"?: string;

0 commit comments

Comments
 (0)