Skip to content

Commit

Permalink
Add missing measures for SLOs data source (#1902)
Browse files Browse the repository at this point in the history
* 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 <packages@datadoghq.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Nov 11, 2024
1 parent 57c0121 commit 01520fe
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-08 19:36:35.931793",
"spec_repo_commit": "ae3b5463"
"regenerated": "2024-11-11 17:25:16.106068",
"spec_repo_commit": "9de1804a"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-08 19:36:35.950628",
"spec_repo_commit": "ae3b5463"
"regenerated": "2024-11-11 17:25:16.125298",
"spec_repo_commit": "9de1804a"
}
}
}
4 changes: 4 additions & 0 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3040,6 +3040,8 @@ components:
enum:
- good_events
- bad_events
- good_minutes
- bad_minutes
- slo_status
- error_budget_remaining
- burn_rate
Expand All @@ -3049,6 +3051,8 @@ components:
x-enum-varnames:
- GOOD_EVENTS
- BAD_EVENTS
- GOOD_MINUTES
- BAD_MINUTES
- SLO_STATUS
- ERROR_BUDGET_REMAINING
- BURN_RATE
Expand Down
2 changes: 1 addition & 1 deletion examples/v2/security-monitoring/GetHistoricalJob.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
import { client, v2 } from "@datadog/datadog-api-client";

const configuration = client.createConfiguration();
configuration.unstableOperations["v2.runHistoricalJob"] = true;
configuration.unstableOperations["v2.getHistoricalJob"] = true;
configuration.unstableOperations["v2.runHistoricalJob"] = true;
const apiInstance = new v2.SecurityMonitoringApi(configuration);

// there is a valid "historical_job" in the system
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@ import { UnparsedObject } from "../../datadog-api-client-common/util";
export type FormulaAndFunctionSLOMeasure =
| typeof GOOD_EVENTS
| typeof BAD_EVENTS
| typeof GOOD_MINUTES
| typeof BAD_MINUTES
| typeof SLO_STATUS
| typeof ERROR_BUDGET_REMAINING
| typeof BURN_RATE
| typeof ERROR_BUDGET_BURNDOWN
| UnparsedObject;
export const GOOD_EVENTS = "good_events";
export const BAD_EVENTS = "bad_events";
export const GOOD_MINUTES = "good_minutes";
export const BAD_MINUTES = "bad_minutes";
export const SLO_STATUS = "slo_status";
export const ERROR_BUDGET_REMAINING = "error_budget_remaining";
export const BURN_RATE = "burn_rate";
Expand Down
2 changes: 2 additions & 0 deletions packages/datadog-api-client-v1/models/ObjectSerializer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -776,6 +776,8 @@ const enumsMap: { [key: string]: any[] } = {
FormulaAndFunctionSLOMeasure: [
"good_events",
"bad_events",
"good_minutes",
"bad_minutes",
"slo_status",
"error_budget_remaining",
"burn_rate",
Expand Down

0 comments on commit 01520fe

Please sign in to comment.