Skip to content

Commit 91626ec

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Update CI app aggregation functions enum (#1239)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 60c0be6 commit 91626ec

File tree

3 files changed

+25
-5
lines changed

3 files changed

+25
-5
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.4",
7-
"regenerated": "2022-11-16 21:36:47.350273",
8-
"spec_repo_commit": "b9a1fc71"
7+
"regenerated": "2022-11-17 17:19:22.067555",
8+
"spec_repo_commit": "d582c49d"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.4",
12-
"regenerated": "2022-11-16 21:36:47.361486",
13-
"spec_repo_commit": "b9a1fc71"
12+
"regenerated": "2022-11-17 17:19:22.079455",
13+
"spec_repo_commit": "d582c49d"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,10 @@ components:
11821182
- max
11831183
- avg
11841184
- median
1185+
- latest
1186+
- earliest
1187+
- most_frequent
1188+
- delta
11851189
example: pc90
11861190
type: string
11871191
x-enum-varnames:
@@ -1197,6 +1201,10 @@ components:
11971201
- MAX
11981202
- AVG
11991203
- MEDIAN
1204+
- LATEST
1205+
- EARLIEST
1206+
- MOST_FREQUENT
1207+
- DELTA
12001208
CIAppCompute:
12011209
description: A compute rule to compute metrics or timeseries.
12021210
properties:

src/datadog_api_client/v2/model/ci_app_aggregation_function.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class CIAppAggregationFunction(ModelSimple):
1616
"""
1717
An aggregation function.
1818
19-
:param value: Must be one of ["count", "cardinality", "pc75", "pc90", "pc95", "pc98", "pc99", "sum", "min", "max", "avg", "median"].
19+
:param value: Must be one of ["count", "cardinality", "pc75", "pc90", "pc95", "pc98", "pc99", "sum", "min", "max", "avg", "median", "latest", "earliest", "most_frequent", "delta"].
2020
:type value: str
2121
"""
2222

@@ -33,6 +33,10 @@ class CIAppAggregationFunction(ModelSimple):
3333
"max",
3434
"avg",
3535
"median",
36+
"latest",
37+
"earliest",
38+
"most_frequent",
39+
"delta",
3640
}
3741
COUNT: ClassVar["CIAppAggregationFunction"]
3842
CARDINALITY: ClassVar["CIAppAggregationFunction"]
@@ -46,6 +50,10 @@ class CIAppAggregationFunction(ModelSimple):
4650
MAX: ClassVar["CIAppAggregationFunction"]
4751
AVG: ClassVar["CIAppAggregationFunction"]
4852
MEDIAN: ClassVar["CIAppAggregationFunction"]
53+
LATEST: ClassVar["CIAppAggregationFunction"]
54+
EARLIEST: ClassVar["CIAppAggregationFunction"]
55+
MOST_FREQUENT: ClassVar["CIAppAggregationFunction"]
56+
DELTA: ClassVar["CIAppAggregationFunction"]
4957

5058
@cached_property
5159
def openapi_types(_):
@@ -66,3 +74,7 @@ def openapi_types(_):
6674
CIAppAggregationFunction.MAX = CIAppAggregationFunction("max")
6775
CIAppAggregationFunction.AVG = CIAppAggregationFunction("avg")
6876
CIAppAggregationFunction.MEDIAN = CIAppAggregationFunction("median")
77+
CIAppAggregationFunction.LATEST = CIAppAggregationFunction("latest")
78+
CIAppAggregationFunction.EARLIEST = CIAppAggregationFunction("earliest")
79+
CIAppAggregationFunction.MOST_FREQUENT = CIAppAggregationFunction("most_frequent")
80+
CIAppAggregationFunction.DELTA = CIAppAggregationFunction("delta")

0 commit comments

Comments
 (0)