Skip to content

Add missing measures for SLOs data source #1902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading