Skip to content

Commit f08cbe7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
dashboards add support for time-slice SLOs (#2047)
* Regenerate client from commit f77e7cb2 of spec repo * pre-commit fixes --------- 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 c5f2793 commit f08cbe7

File tree

3 files changed

+10
-5
lines changed

3 files changed

+10
-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.6",
7-
"regenerated": "2024-07-16 18:49:24.415199",
8-
"spec_repo_commit": "a669b93e"
7+
"regenerated": "2024-07-17 08:36:08.394705",
8+
"spec_repo_commit": "f77e7cb2"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-16 18:49:24.431970",
13-
"spec_repo_commit": "a669b93e"
12+
"regenerated": "2024-07-17 08:36:08.412103",
13+
"spec_repo_commit": "f77e7cb2"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3087,10 +3087,12 @@ components:
30873087
description: Name of the query for use in formulas.
30883088
enum:
30893089
- metric
3090+
- time_slice
30903091
example: metric
30913092
type: string
30923093
x-enum-varnames:
30933094
- METRIC
3095+
- TIME_SLICE
30943096
FormulaType:
30953097
description: Set the sort type to formula.
30963098
enum:

src/datadog_api_client/v1/model/formula_and_function_slo_query_type.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,16 @@ class FormulaAndFunctionSLOQueryType(ModelSimple):
1616
"""
1717
Name of the query for use in formulas.
1818
19-
:param value: If omitted defaults to "metric". Must be one of ["metric"].
19+
:param value: Must be one of ["metric", "time_slice"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"metric",
25+
"time_slice",
2526
}
2627
METRIC: ClassVar["FormulaAndFunctionSLOQueryType"]
28+
TIME_SLICE: ClassVar["FormulaAndFunctionSLOQueryType"]
2729

2830
@cached_property
2931
def openapi_types(_):
@@ -33,3 +35,4 @@ def openapi_types(_):
3335

3436

3537
FormulaAndFunctionSLOQueryType.METRIC = FormulaAndFunctionSLOQueryType("metric")
38+
FormulaAndFunctionSLOQueryType.TIME_SLICE = FormulaAndFunctionSLOQueryType("time_slice")

0 commit comments

Comments
 (0)