You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: The number of days the test has been active at the time of the status change.
26359
+
example: 15
26360
+
format: int32
26361
+
maximum: 2147483647
26362
+
nullable: true
26363
+
type: integer
26364
+
days_without_flake:
26365
+
description: The number of days since the test last exhibited flakiness.
26366
+
example: 30
26367
+
format: int32
26368
+
maximum: 2147483647
26369
+
nullable: true
26370
+
type: integer
26371
+
failure_rate:
26372
+
description: The failure rate of the test at the time of the status change.
26373
+
example: 0.25
26374
+
format: double
26375
+
maximum: 1
26376
+
minimum: 0
26377
+
nullable: true
26378
+
type: number
26379
+
state:
26380
+
description: The previous state of the test.
26381
+
example: quarantined
26382
+
nullable: true
26383
+
type: string
26384
+
total_runs:
26385
+
description: The total number of test runs at the time of the status change.
26386
+
example: 200
26387
+
format: int32
26388
+
maximum: 2147483647
26389
+
nullable: true
26390
+
type: integer
26391
+
type: object
26392
+
FlakyTestHistoryPolicyMetaConfig:
26393
+
description: Configuration parameters of the policy that triggered this status change.
26394
+
properties:
26395
+
branches:
26396
+
description: The branches considered by the policy.
26397
+
example: ["main"]
26398
+
items:
26399
+
type: string
26400
+
nullable: true
26401
+
type: array
26402
+
days_active:
26403
+
description: The number of days a test must have been active for the policy to trigger.
26404
+
example: 30
26405
+
format: int32
26406
+
maximum: 2147483647
26407
+
nullable: true
26408
+
type: integer
26409
+
failure_rate:
26410
+
description: The failure rate threshold for the policy to trigger.
26411
+
example: 0.7
26412
+
format: double
26413
+
maximum: 1
26414
+
minimum: 0
26415
+
nullable: true
26416
+
type: number
26417
+
forget_branches:
26418
+
description: Branches excluded from the policy evaluation.
26419
+
example: ["release"]
26420
+
items:
26421
+
type: string
26422
+
nullable: true
26423
+
type: array
26424
+
required_runs:
26425
+
description: The minimum number of test runs required for the policy to trigger.
26426
+
example: 100
26427
+
format: int32
26428
+
maximum: 2147483647
26429
+
nullable: true
26430
+
type: integer
26431
+
state:
26432
+
description: The target state the policy transitions the test from.
26433
+
example: quarantined
26434
+
nullable: true
26435
+
type: string
26436
+
test_services:
26437
+
description: Test services excluded from the policy evaluation.
26438
+
example: ["my-service"]
26439
+
items:
26440
+
type: string
26441
+
nullable: true
26442
+
type: array
26443
+
type: object
26305
26444
FlakyTestPipelineStats:
26306
26445
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.
26307
26446
properties:
@@ -26381,6 +26520,14 @@ components:
26381
26520
FlakyTestsSearchFilter:
26382
26521
description: Search filter settings.
26383
26522
properties:
26523
+
include_history:
26524
+
default: false
26525
+
description: |-
26526
+
Whether to include the status change history for each flaky test in the response.
26527
+
When set to true, each test will include a `history` array with chronological status changes.
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2
+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3
+
# Copyright 2019-Present Datadog, Inc.
4
+
from __future__ importannotations
5
+
6
+
7
+
fromdatadog_api_client.model_utilsimport (
8
+
ModelSimple,
9
+
cached_property,
10
+
)
11
+
12
+
fromtypingimportClassVar
13
+
14
+
15
+
classFlakyTestHistoryPolicyId(ModelSimple):
16
+
"""
17
+
The policy that triggered this status change.
18
+
19
+
:param value: Must be one of ["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"].
0 commit comments