Skip to content

Commit 01520fe

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add missing measures for SLOs data source (#1902)
* Regenerate client from commit 9de1804a of spec repo * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes * pre-commit fixes --------- Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 57c0121 commit 01520fe

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-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-11-08 19:36:35.931793",
8-
"spec_repo_commit": "ae3b5463"
7+
"regenerated": "2024-11-11 17:25:16.106068",
8+
"spec_repo_commit": "9de1804a"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-08 19:36:35.950628",
13-
"spec_repo_commit": "ae3b5463"
12+
"regenerated": "2024-11-11 17:25:16.125298",
13+
"spec_repo_commit": "9de1804a"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3040,6 +3040,8 @@ components:
30403040
enum:
30413041
- good_events
30423042
- bad_events
3043+
- good_minutes
3044+
- bad_minutes
30433045
- slo_status
30443046
- error_budget_remaining
30453047
- burn_rate
@@ -3049,6 +3051,8 @@ components:
30493051
x-enum-varnames:
30503052
- GOOD_EVENTS
30513053
- BAD_EVENTS
3054+
- GOOD_MINUTES
3055+
- BAD_MINUTES
30523056
- SLO_STATUS
30533057
- ERROR_BUDGET_REMAINING
30543058
- BURN_RATE

examples/v2/security-monitoring/GetHistoricalJob.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
import { client, v2 } from "@datadog/datadog-api-client";
66

77
const configuration = client.createConfiguration();
8-
configuration.unstableOperations["v2.runHistoricalJob"] = true;
98
configuration.unstableOperations["v2.getHistoricalJob"] = true;
9+
configuration.unstableOperations["v2.runHistoricalJob"] = true;
1010
const apiInstance = new v2.SecurityMonitoringApi(configuration);
1111

1212
// there is a valid "historical_job" in the system

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,17 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
1313
export type FormulaAndFunctionSLOMeasure =
1414
| typeof GOOD_EVENTS
1515
| typeof BAD_EVENTS
16+
| typeof GOOD_MINUTES
17+
| typeof BAD_MINUTES
1618
| typeof SLO_STATUS
1719
| typeof ERROR_BUDGET_REMAINING
1820
| typeof BURN_RATE
1921
| typeof ERROR_BUDGET_BURNDOWN
2022
| UnparsedObject;
2123
export const GOOD_EVENTS = "good_events";
2224
export const BAD_EVENTS = "bad_events";
25+
export const GOOD_MINUTES = "good_minutes";
26+
export const BAD_MINUTES = "bad_minutes";
2327
export const SLO_STATUS = "slo_status";
2428
export const ERROR_BUDGET_REMAINING = "error_budget_remaining";
2529
export const BURN_RATE = "burn_rate";

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,8 @@ const enumsMap: { [key: string]: any[] } = {
776776
FormulaAndFunctionSLOMeasure: [
777777
"good_events",
778778
"bad_events",
779+
"good_minutes",
780+
"bad_minutes",
779781
"slo_status",
780782
"error_budget_remaining",
781783
"burn_rate",

0 commit comments

Comments
 (0)