Skip to content

Commit a11cb18

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
dashboards add support for time-slice SLOs (#1699)
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 94cb37c commit a11cb18

File tree

4 files changed

+12
-6
lines changed

4 files changed

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

.generator/schemas/v1/openapi.yaml

+2
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:

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

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
1010
* Name of the query for use in formulas.
1111
*/
1212

13-
export type FormulaAndFunctionSLOQueryType = typeof METRIC | UnparsedObject;
13+
export type FormulaAndFunctionSLOQueryType =
14+
| typeof METRIC
15+
| typeof TIME_SLICE
16+
| UnparsedObject;
1417
export const METRIC = "metric";
18+
export const TIME_SLICE = "time_slice";

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@ const enumsMap: { [key: string]: any[] } = {
756756
"burn_rate",
757757
"error_budget_burndown",
758758
],
759-
FormulaAndFunctionSLOQueryType: ["metric"],
759+
FormulaAndFunctionSLOQueryType: ["metric", "time_slice"],
760760
FormulaType: ["formula"],
761761
FreeTextWidgetDefinitionType: ["free_text"],
762762
FunnelRequestType: ["funnel"],

0 commit comments

Comments
 (0)