From 01520fe9d3059ca84a4925aa93956dd0cad47f00 Mon Sep 17 00:00:00 2001 From: "api-clients-generation-pipeline[bot]" <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com> Date: Mon, 11 Nov 2024 18:04:24 +0000 Subject: [PATCH] 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 --- .apigentools-info | 8 ++++---- .generator/schemas/v1/openapi.yaml | 4 ++++ examples/v2/security-monitoring/GetHistoricalJob.ts | 2 +- .../models/FormulaAndFunctionSLOMeasure.ts | 4 ++++ packages/datadog-api-client-v1/models/ObjectSerializer.ts | 2 ++ 5 files changed, 15 insertions(+), 5 deletions(-) diff --git a/.apigentools-info b/.apigentools-info index 300fce70c5b..549aca0fc7b 100644 --- a/.apigentools-info +++ b/.apigentools-info @@ -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" } } } \ No newline at end of file diff --git a/.generator/schemas/v1/openapi.yaml b/.generator/schemas/v1/openapi.yaml index a34b1298800..81b91829196 100644 --- a/.generator/schemas/v1/openapi.yaml +++ b/.generator/schemas/v1/openapi.yaml @@ -3040,6 +3040,8 @@ components: enum: - good_events - bad_events + - good_minutes + - bad_minutes - slo_status - error_budget_remaining - burn_rate @@ -3049,6 +3051,8 @@ components: x-enum-varnames: - GOOD_EVENTS - BAD_EVENTS + - GOOD_MINUTES + - BAD_MINUTES - SLO_STATUS - ERROR_BUDGET_REMAINING - BURN_RATE diff --git a/examples/v2/security-monitoring/GetHistoricalJob.ts b/examples/v2/security-monitoring/GetHistoricalJob.ts index 542bdf05bb2..a4f83810650 100644 --- a/examples/v2/security-monitoring/GetHistoricalJob.ts +++ b/examples/v2/security-monitoring/GetHistoricalJob.ts @@ -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 diff --git a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts index ef32eb9fb7c..7cf4e1dbacf 100644 --- a/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts +++ b/packages/datadog-api-client-v1/models/FormulaAndFunctionSLOMeasure.ts @@ -13,6 +13,8 @@ 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 @@ -20,6 +22,8 @@ export type FormulaAndFunctionSLOMeasure = | 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"; diff --git a/packages/datadog-api-client-v1/models/ObjectSerializer.ts b/packages/datadog-api-client-v1/models/ObjectSerializer.ts index 6b12bacab1c..79b7fb2b89e 100644 --- a/packages/datadog-api-client-v1/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v1/models/ObjectSerializer.ts @@ -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",