diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index 45c7a5c59097..cb001b9022f4 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -26392,9 +26392,18 @@ components: Includes state transitions like new -> quarantined -> fixed, along with the associated commit SHA when available. example: - commit_sha: abc123def456 + policy_id: ftm_policy.quarantine.failure_rate + policy_meta: + config: + failure_rate: 0.1 + required_runs: 100 + failure_rate: 0.25 + total_runs: 200 status: quarantined timestamp: 1704067200000 - commit_sha: "" + policy_id: unknown + policy_meta: status: new timestamp: 1703980800000 items: @@ -26464,6 +26473,11 @@ components: description: The commit SHA associated with this status change. Will be an empty string if the commit SHA is not available. example: abc123def456 type: string + policy_id: + $ref: "#/components/schemas/FlakyTestHistoryPolicyId" + policy_meta: + $ref: "#/components/schemas/FlakyTestHistoryPolicyMeta" + nullable: true status: description: The test status at this point in history. example: quarantined @@ -26478,6 +26492,131 @@ components: - commit_sha - timestamp type: object + FlakyTestHistoryPolicyId: + description: The policy that triggered this status change. + enum: + - ftm_policy.manual + - ftm_policy.fixed + - ftm_policy.disable.failure_rate + - ftm_policy.disable.branch_flake + - ftm_policy.disable.days_active + - ftm_policy.quarantine.failure_rate + - ftm_policy.quarantine.branch_flake + - ftm_policy.quarantine.days_active + - unknown + example: ftm_policy.quarantine.failure_rate + nullable: false + type: string + x-enum-varnames: + - MANUAL + - FIXED + - DISABLE_FAILURE_RATE + - DISABLE_BRANCH_FLAKE + - DISABLE_DAYS_ACTIVE + - QUARANTINE_FAILURE_RATE + - QUARANTINE_BRANCH_FLAKE + - QUARANTINE_DAYS_ACTIVE + - UNKNOWN + FlakyTestHistoryPolicyMeta: + description: Metadata about the policy that triggered this status change. + properties: + branches: + description: Branches where the test was flaky at the time of the status change. + example: ["main", "develop"] + items: + type: string + nullable: true + type: array + config: + $ref: "#/components/schemas/FlakyTestHistoryPolicyMetaConfig" + nullable: true + days_active: + description: The number of days the test has been active at the time of the status change. + example: 15 + format: int32 + maximum: 2147483647 + nullable: true + type: integer + days_without_flake: + description: The number of days since the test last exhibited flakiness. + example: 30 + format: int32 + maximum: 2147483647 + nullable: true + type: integer + failure_rate: + description: The failure rate of the test at the time of the status change. + example: 0.25 + format: double + maximum: 1 + minimum: 0 + nullable: true + type: number + state: + description: The previous state of the test. + example: quarantined + nullable: true + type: string + total_runs: + description: The total number of test runs at the time of the status change. + example: 200 + format: int32 + maximum: 2147483647 + nullable: true + type: integer + type: object + FlakyTestHistoryPolicyMetaConfig: + description: Configuration parameters of the policy that triggered this status change. + properties: + branches: + description: The branches considered by the policy. + example: ["main"] + items: + type: string + nullable: true + type: array + days_active: + description: The number of days a test must have been active for the policy to trigger. + example: 30 + format: int32 + maximum: 2147483647 + nullable: true + type: integer + failure_rate: + description: The failure rate threshold for the policy to trigger. + example: 0.7 + format: double + maximum: 1 + minimum: 0 + nullable: true + type: number + forget_branches: + description: Branches excluded from the policy evaluation. + example: ["release"] + items: + type: string + nullable: true + type: array + required_runs: + description: The minimum number of test runs required for the policy to trigger. + example: 100 + format: int32 + maximum: 2147483647 + nullable: true + type: integer + state: + description: The target state the policy transitions the test from. + example: quarantined + nullable: true + type: string + test_services: + description: Test services excluded from the policy evaluation. + example: ["my-service"] + items: + type: string + nullable: true + type: array + type: object FlakyTestPipelineStats: description: CI pipeline related statistics for the flaky test. This information is only available if test runs are associated with CI pipeline events from CI Visibility. properties: @@ -26557,6 +26696,14 @@ components: FlakyTestsSearchFilter: description: Search filter settings. properties: + include_history: + default: false + description: |- + Whether to include the status change history for each flaky test in the response. + When set to true, each test will include a `history` array with chronological status changes. + Defaults to false. + example: true + type: boolean query: default: "*" description: |- @@ -26602,14 +26749,6 @@ components: properties: filter: $ref: "#/components/schemas/FlakyTestsSearchFilter" - include_history: - default: false - description: |- - Whether to include the status change history for each flaky test in the response. - When set to true, each test will include a `history` array with chronological status changes. - Defaults to false. - example: true - type: boolean page: $ref: "#/components/schemas/FlakyTestsSearchPageOptions" sort: diff --git a/examples/v2/test-optimization/SearchFlakyTests.ts b/examples/v2/test-optimization/SearchFlakyTests.ts index 974729885eea..45d486cadae8 100644 --- a/examples/v2/test-optimization/SearchFlakyTests.ts +++ b/examples/v2/test-optimization/SearchFlakyTests.ts @@ -13,9 +13,9 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = { data: { attributes: { filter: { + includeHistory: true, query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`, }, - includeHistory: true, page: { cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", diff --git a/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts b/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts index 9fbd86e965b2..d49c3510135e 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts +++ b/examples/v2/test-optimization/SearchFlakyTests_1224086727.ts @@ -13,9 +13,9 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = { data: { attributes: { filter: { + includeHistory: true, query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`, }, - includeHistory: true, page: { cursor: "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", diff --git a/examples/v2/test-optimization/SearchFlakyTests_209064879.ts b/examples/v2/test-optimization/SearchFlakyTests_209064879.ts index 8130d8f5eb3a..cafa7da8347b 100644 --- a/examples/v2/test-optimization/SearchFlakyTests_209064879.ts +++ b/examples/v2/test-optimization/SearchFlakyTests_209064879.ts @@ -14,12 +14,12 @@ const params: v2.TestOptimizationApiSearchFlakyTestsRequest = { attributes: { filter: { query: `flaky_test_state:active @git.repository.id_v2:"github.com/datadog/shopist"`, + includeHistory: true, }, page: { limit: 10, }, sort: "fqn", - includeHistory: true, }, type: "search_flaky_tests_request", }, diff --git a/features/v2/test_optimization.feature b/features/v2/test_optimization.feature index 427db05baf4f..27f337f9299c 100644 --- a/features/v2/test_optimization.feature +++ b/features/v2/test_optimization.feature @@ -85,7 +85,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "Bad Request" response Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "include_history": true, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"include_history": true, "query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} When the request is sent Then the response status is 400 Bad Request @@ -101,7 +101,7 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "include_history": true, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"include_history": true, "query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} When the request is sent Then the response status is 200 OK @@ -117,19 +117,21 @@ Feature: Test Optimization Scenario: Search flaky tests returns "OK" response with history Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"limit": 10}, "sort": "fqn", "include_history": true}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\"", "include_history": true}, "page": {"limit": 10}, "sort": "fqn"}, "type": "search_flaky_tests_request"}} When the request is sent Then the response status is 200 OK And the response "data[0].attributes" has field "history" And the response "data[0].attributes.history[0]" has field "status" And the response "data[0].attributes.history[0]" has field "commit_sha" And the response "data[0].attributes.history[0]" has field "timestamp" + And the response "data[0].attributes.history[0]" has field "policy_id" + And the response "data[0].attributes.history[0]" has field "policy_meta" @generated @skip @team:DataDog/ci-app-backend @with-pagination Scenario: Search flaky tests returns "OK" response with pagination Given operation "SearchFlakyTests" enabled And new "SearchFlakyTests" request - And body with value {"data": {"attributes": {"filter": {"query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "include_history": true, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} + And body with value {"data": {"attributes": {"filter": {"include_history": true, "query": "flaky_test_state:active @git.repository.id_v2:\"github.com/datadog/shopist\""}, "page": {"cursor": "eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==", "limit": 25}, "sort": "failure_rate"}, "type": "search_flaky_tests_request"}} When the request with pagination is sent Then the response status is 200 OK diff --git a/packages/datadog-api-client-v2/index.ts b/packages/datadog-api-client-v2/index.ts index e766004eadc9..cb316b2e3a39 100644 --- a/packages/datadog-api-client-v2/index.ts +++ b/packages/datadog-api-client-v2/index.ts @@ -2874,6 +2874,9 @@ export { FlakyTest } from "./models/FlakyTest"; export { FlakyTestAttributes } from "./models/FlakyTestAttributes"; export { FlakyTestAttributesFlakyState } from "./models/FlakyTestAttributesFlakyState"; export { FlakyTestHistory } from "./models/FlakyTestHistory"; +export { FlakyTestHistoryPolicyId } from "./models/FlakyTestHistoryPolicyId"; +export { FlakyTestHistoryPolicyMeta } from "./models/FlakyTestHistoryPolicyMeta"; +export { FlakyTestHistoryPolicyMetaConfig } from "./models/FlakyTestHistoryPolicyMetaConfig"; export { FlakyTestPipelineStats } from "./models/FlakyTestPipelineStats"; export { FlakyTestRunMetadata } from "./models/FlakyTestRunMetadata"; export { FlakyTestsPagination } from "./models/FlakyTestsPagination"; diff --git a/packages/datadog-api-client-v2/models/FlakyTestHistory.ts b/packages/datadog-api-client-v2/models/FlakyTestHistory.ts index e841efa82e14..cce149ffd887 100644 --- a/packages/datadog-api-client-v2/models/FlakyTestHistory.ts +++ b/packages/datadog-api-client-v2/models/FlakyTestHistory.ts @@ -3,6 +3,8 @@ * This product includes software developed at Datadog (https://www.datadoghq.com/). * Copyright 2020-Present Datadog, Inc. */ +import { FlakyTestHistoryPolicyId } from "./FlakyTestHistoryPolicyId"; +import { FlakyTestHistoryPolicyMeta } from "./FlakyTestHistoryPolicyMeta"; import { AttributeTypeMap } from "../../datadog-api-client-common/util"; @@ -14,6 +16,14 @@ export class FlakyTestHistory { * The commit SHA associated with this status change. Will be an empty string if the commit SHA is not available. */ "commitSha": string; + /** + * The policy that triggered this status change. + */ + "policyId"?: FlakyTestHistoryPolicyId; + /** + * Metadata about the policy that triggered this status change. + */ + "policyMeta"?: FlakyTestHistoryPolicyMeta; /** * The test status at this point in history. */ @@ -44,6 +54,14 @@ export class FlakyTestHistory { type: "string", required: true, }, + policyId: { + baseName: "policy_id", + type: "FlakyTestHistoryPolicyId", + }, + policyMeta: { + baseName: "policy_meta", + type: "FlakyTestHistoryPolicyMeta", + }, status: { baseName: "status", type: "string", diff --git a/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyId.ts b/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyId.ts new file mode 100644 index 000000000000..6d8689ef546c --- /dev/null +++ b/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyId.ts @@ -0,0 +1,32 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { UnparsedObject } from "../../datadog-api-client-common/util"; + +/** + * The policy that triggered this status change. + */ + +export type FlakyTestHistoryPolicyId = + | typeof MANUAL + | typeof FIXED + | typeof DISABLE_FAILURE_RATE + | typeof DISABLE_BRANCH_FLAKE + | typeof DISABLE_DAYS_ACTIVE + | typeof QUARANTINE_FAILURE_RATE + | typeof QUARANTINE_BRANCH_FLAKE + | typeof QUARANTINE_DAYS_ACTIVE + | typeof UNKNOWN + | UnparsedObject; +export const MANUAL = "ftm_policy.manual"; +export const FIXED = "ftm_policy.fixed"; +export const DISABLE_FAILURE_RATE = "ftm_policy.disable.failure_rate"; +export const DISABLE_BRANCH_FLAKE = "ftm_policy.disable.branch_flake"; +export const DISABLE_DAYS_ACTIVE = "ftm_policy.disable.days_active"; +export const QUARANTINE_FAILURE_RATE = "ftm_policy.quarantine.failure_rate"; +export const QUARANTINE_BRANCH_FLAKE = "ftm_policy.quarantine.branch_flake"; +export const QUARANTINE_DAYS_ACTIVE = "ftm_policy.quarantine.days_active"; +export const UNKNOWN = "unknown"; diff --git a/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyMeta.ts b/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyMeta.ts new file mode 100644 index 000000000000..1e111c249707 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyMeta.ts @@ -0,0 +1,105 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ +import { FlakyTestHistoryPolicyMetaConfig } from "./FlakyTestHistoryPolicyMetaConfig"; + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Metadata about the policy that triggered this status change. + */ +export class FlakyTestHistoryPolicyMeta { + /** + * Branches where the test was flaky at the time of the status change. + */ + "branches"?: Array; + /** + * Configuration parameters of the policy that triggered this status change. + */ + "config"?: FlakyTestHistoryPolicyMetaConfig; + /** + * The number of days the test has been active at the time of the status change. + */ + "daysActive"?: number; + /** + * The number of days since the test last exhibited flakiness. + */ + "daysWithoutFlake"?: number; + /** + * The failure rate of the test at the time of the status change. + */ + "failureRate"?: number; + /** + * The previous state of the test. + */ + "state"?: string; + /** + * The total number of test runs at the time of the status change. + */ + "totalRuns"?: number; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + branches: { + baseName: "branches", + type: "Array", + }, + config: { + baseName: "config", + type: "FlakyTestHistoryPolicyMetaConfig", + }, + daysActive: { + baseName: "days_active", + type: "number", + format: "int32", + }, + daysWithoutFlake: { + baseName: "days_without_flake", + type: "number", + format: "int32", + }, + failureRate: { + baseName: "failure_rate", + type: "number", + format: "double", + }, + state: { + baseName: "state", + type: "string", + }, + totalRuns: { + baseName: "total_runs", + type: "number", + format: "int32", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FlakyTestHistoryPolicyMeta.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyMetaConfig.ts b/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyMetaConfig.ts new file mode 100644 index 000000000000..df1ad6ad9382 --- /dev/null +++ b/packages/datadog-api-client-v2/models/FlakyTestHistoryPolicyMetaConfig.ts @@ -0,0 +1,103 @@ +/** + * Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License. + * This product includes software developed at Datadog (https://www.datadoghq.com/). + * Copyright 2020-Present Datadog, Inc. + */ + +import { AttributeTypeMap } from "../../datadog-api-client-common/util"; + +/** + * Configuration parameters of the policy that triggered this status change. + */ +export class FlakyTestHistoryPolicyMetaConfig { + /** + * The branches considered by the policy. + */ + "branches"?: Array; + /** + * The number of days a test must have been active for the policy to trigger. + */ + "daysActive"?: number; + /** + * The failure rate threshold for the policy to trigger. + */ + "failureRate"?: number; + /** + * Branches excluded from the policy evaluation. + */ + "forgetBranches"?: Array; + /** + * The minimum number of test runs required for the policy to trigger. + */ + "requiredRuns"?: number; + /** + * The target state the policy transitions the test from. + */ + "state"?: string; + /** + * Test services excluded from the policy evaluation. + */ + "testServices"?: Array; + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + "additionalProperties"?: { [key: string]: any }; + + /** + * @ignore + */ + "_unparsed"?: boolean; + + /** + * @ignore + */ + static readonly attributeTypeMap: AttributeTypeMap = { + branches: { + baseName: "branches", + type: "Array", + }, + daysActive: { + baseName: "days_active", + type: "number", + format: "int32", + }, + failureRate: { + baseName: "failure_rate", + type: "number", + format: "double", + }, + forgetBranches: { + baseName: "forget_branches", + type: "Array", + }, + requiredRuns: { + baseName: "required_runs", + type: "number", + format: "int32", + }, + state: { + baseName: "state", + type: "string", + }, + testServices: { + baseName: "test_services", + type: "Array", + }, + additionalProperties: { + baseName: "additionalProperties", + type: "{ [key: string]: any; }", + }, + }; + + /** + * @ignore + */ + static getAttributeTypeMap(): AttributeTypeMap { + return FlakyTestHistoryPolicyMetaConfig.attributeTypeMap; + } + + public constructor() {} +} diff --git a/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts b/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts index 361fddd6e38c..172e8eff1d53 100644 --- a/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts +++ b/packages/datadog-api-client-v2/models/FlakyTestsSearchFilter.ts @@ -10,6 +10,12 @@ import { AttributeTypeMap } from "../../datadog-api-client-common/util"; * Search filter settings. */ export class FlakyTestsSearchFilter { + /** + * Whether to include the status change history for each flaky test in the response. + * When set to true, each test will include a `history` array with chronological status changes. + * Defaults to false. + */ + "includeHistory"?: boolean; /** * Search query following log syntax used to filter flaky tests, same as on Flaky Tests Management UI. The supported search keys are: * - `flaky_test_state` @@ -41,6 +47,10 @@ export class FlakyTestsSearchFilter { * @ignore */ static readonly attributeTypeMap: AttributeTypeMap = { + includeHistory: { + baseName: "include_history", + type: "boolean", + }, query: { baseName: "query", type: "string", diff --git a/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts b/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts index 7dae8665b5c4..c84f6b7c952a 100644 --- a/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts +++ b/packages/datadog-api-client-v2/models/FlakyTestsSearchRequestAttributes.ts @@ -17,12 +17,6 @@ export class FlakyTestsSearchRequestAttributes { * Search filter settings. */ "filter"?: FlakyTestsSearchFilter; - /** - * Whether to include the status change history for each flaky test in the response. - * When set to true, each test will include a `history` array with chronological status changes. - * Defaults to false. - */ - "includeHistory"?: boolean; /** * Pagination attributes for listing flaky tests. */ @@ -52,10 +46,6 @@ export class FlakyTestsSearchRequestAttributes { baseName: "filter", type: "FlakyTestsSearchFilter", }, - includeHistory: { - baseName: "include_history", - type: "boolean", - }, page: { baseName: "page", type: "FlakyTestsSearchPageOptions", diff --git a/packages/datadog-api-client-v2/models/ObjectSerializer.ts b/packages/datadog-api-client-v2/models/ObjectSerializer.ts index 1b607cf11757..65cda801adf0 100644 --- a/packages/datadog-api-client-v2/models/ObjectSerializer.ts +++ b/packages/datadog-api-client-v2/models/ObjectSerializer.ts @@ -1231,6 +1231,8 @@ import { Findings } from "./Findings"; import { FlakyTest } from "./FlakyTest"; import { FlakyTestAttributes } from "./FlakyTestAttributes"; import { FlakyTestHistory } from "./FlakyTestHistory"; +import { FlakyTestHistoryPolicyMeta } from "./FlakyTestHistoryPolicyMeta"; +import { FlakyTestHistoryPolicyMetaConfig } from "./FlakyTestHistoryPolicyMetaConfig"; import { FlakyTestPipelineStats } from "./FlakyTestPipelineStats"; import { FlakyTestRunMetadata } from "./FlakyTestRunMetadata"; import { FlakyTestStats } from "./FlakyTestStats"; @@ -4258,6 +4260,17 @@ const enumsMap: { [key: string]: any[] } = { "api_security", ], FlakyTestAttributesFlakyState: ["active", "fixed", "quarantined", "disabled"], + FlakyTestHistoryPolicyId: [ + "ftm_policy.manual", + "ftm_policy.fixed", + "ftm_policy.disable.failure_rate", + "ftm_policy.disable.branch_flake", + "ftm_policy.disable.days_active", + "ftm_policy.quarantine.failure_rate", + "ftm_policy.quarantine.branch_flake", + "ftm_policy.quarantine.days_active", + "unknown", + ], FlakyTestType: ["flaky_test"], FlakyTestsSearchRequestDataType: ["search_flaky_tests_request"], FlakyTestsSearchSort: [ @@ -7246,6 +7259,8 @@ const typeMap: { [index: string]: any } = { FlakyTest: FlakyTest, FlakyTestAttributes: FlakyTestAttributes, FlakyTestHistory: FlakyTestHistory, + FlakyTestHistoryPolicyMeta: FlakyTestHistoryPolicyMeta, + FlakyTestHistoryPolicyMetaConfig: FlakyTestHistoryPolicyMetaConfig, FlakyTestPipelineStats: FlakyTestPipelineStats, FlakyTestRunMetadata: FlakyTestRunMetadata, FlakyTestStats: FlakyTestStats,