Skip to content

Commit c310ec0

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Document EQUAL comparator (#1280)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 5f2a1fa commit c310ec0

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed

.apigentools-info

+4-4
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-10 19:08:17.325687",
8-
"spec_repo_commit": "991b8a6f"
7+
"regenerated": "2023-08-11 17:09:04.097468",
8+
"spec_repo_commit": "0b6bfbed"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.5",
12-
"regenerated": "2023-08-10 19:08:17.348450",
13-
"spec_repo_commit": "991b8a6f"
12+
"regenerated": "2023-08-11 17:09:04.121769",
13+
"spec_repo_commit": "0b6bfbed"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -19320,13 +19320,15 @@ components:
1932019320
WidgetComparator:
1932119321
description: Comparator to apply.
1932219322
enum:
19323+
- '='
1932319324
- '>'
1932419325
- '>='
1932519326
- <
1932619327
- <=
1932719328
example: '>'
1932819329
type: string
1932919330
x-enum-varnames:
19331+
- EQUAL_TO
1933019332
- GREATER_THAN
1933119333
- GREATER_THAN_OR_EQUAL_TO
1933219334
- LESS_THAN

packages/datadog-api-client-v1/models/ObjectSerializer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1346,7 +1346,7 @@ const enumsMap: { [key: string]: any[] } = {
13461346
WidgetAggregator: ["avg", "last", "max", "min", "sum", "percentile"],
13471347
WidgetChangeType: ["absolute", "relative"],
13481348
WidgetColorPreference: ["background", "text"],
1349-
WidgetComparator: [">", ">=", "<", "<="],
1349+
WidgetComparator: ["=", ">", ">=", "<", "<="],
13501350
WidgetCompareTo: ["hour_before", "day_before", "week_before", "month_before"],
13511351
WidgetDisplayType: ["area", "bars", "line", "overlay"],
13521352
WidgetEventSize: ["s", "l"],

packages/datadog-api-client-v1/models/WidgetComparator.ts

+2
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
1111
*/
1212

1313
export type WidgetComparator =
14+
| typeof EQUAL_TO
1415
| typeof GREATER_THAN
1516
| typeof GREATER_THAN_OR_EQUAL_TO
1617
| typeof LESS_THAN
1718
| typeof LESS_THAN_OR_EQUAL_TO
1819
| UnparsedObject;
20+
export const EQUAL_TO = "=";
1921
export const GREATER_THAN = ">";
2022
export const GREATER_THAN_OR_EQUAL_TO = ">=";
2123
export const LESS_THAN = "<";

0 commit comments

Comments
 (0)