1616
1717if TYPE_CHECKING :
1818 from datadog_api_client .v2 .model .flaky_test_attributes_flaky_state import FlakyTestAttributesFlakyState
19+ from datadog_api_client .v2 .model .flaky_test_history import FlakyTestHistory
1920 from datadog_api_client .v2 .model .flaky_test_pipeline_stats import FlakyTestPipelineStats
2021 from datadog_api_client .v2 .model .flaky_test_run_metadata import FlakyTestRunMetadata
2122 from datadog_api_client .v2 .model .flaky_test_stats import FlakyTestStats
@@ -25,6 +26,7 @@ class FlakyTestAttributes(ModelNormal):
2526 @cached_property
2627 def openapi_types (_ ):
2728 from datadog_api_client .v2 .model .flaky_test_attributes_flaky_state import FlakyTestAttributesFlakyState
29+ from datadog_api_client .v2 .model .flaky_test_history import FlakyTestHistory
2830 from datadog_api_client .v2 .model .flaky_test_pipeline_stats import FlakyTestPipelineStats
2931 from datadog_api_client .v2 .model .flaky_test_run_metadata import FlakyTestRunMetadata
3032 from datadog_api_client .v2 .model .flaky_test_stats import FlakyTestStats
@@ -38,6 +40,7 @@ def openapi_types(_):
3840 "first_flaked_ts" : (int ,),
3941 "flaky_category" : (str , none_type ),
4042 "flaky_state" : (FlakyTestAttributesFlakyState ,),
43+ "history" : ([FlakyTestHistory ],),
4144 "last_flaked_branch" : (str ,),
4245 "last_flaked_sha" : (str ,),
4346 "last_flaked_ts" : (int ,),
@@ -59,6 +62,7 @@ def openapi_types(_):
5962 "first_flaked_ts" : "first_flaked_ts" ,
6063 "flaky_category" : "flaky_category" ,
6164 "flaky_state" : "flaky_state" ,
65+ "history" : "history" ,
6266 "last_flaked_branch" : "last_flaked_branch" ,
6367 "last_flaked_sha" : "last_flaked_sha" ,
6468 "last_flaked_ts" : "last_flaked_ts" ,
@@ -81,6 +85,7 @@ def __init__(
8185 first_flaked_ts : Union [int , UnsetType ] = unset ,
8286 flaky_category : Union [str , none_type , UnsetType ] = unset ,
8387 flaky_state : Union [FlakyTestAttributesFlakyState , UnsetType ] = unset ,
88+ history : Union [List [FlakyTestHistory ], UnsetType ] = unset ,
8489 last_flaked_branch : Union [str , UnsetType ] = unset ,
8590 last_flaked_sha : Union [str , UnsetType ] = unset ,
8691 last_flaked_ts : Union [int , UnsetType ] = unset ,
@@ -123,6 +128,10 @@ def __init__(
123128 :param flaky_state: The current state of the flaky test.
124129 :type flaky_state: FlakyTestAttributesFlakyState, optional
125130
131+ :param history: Chronological history of status changes for this flaky test, ordered from most recent to oldest.
132+ Includes state transitions like new -> quarantined -> fixed, along with the associated commit SHA when available.
133+ :type history: [FlakyTestHistory], optional
134+
126135 :param last_flaked_branch: The branch name where the test exhibited flakiness for the last time.
127136 :type last_flaked_branch: str, optional
128137
@@ -178,6 +187,8 @@ def __init__(
178187 kwargs ["flaky_category" ] = flaky_category
179188 if flaky_state is not unset :
180189 kwargs ["flaky_state" ] = flaky_state
190+ if history is not unset :
191+ kwargs ["history" ] = history
181192 if last_flaked_branch is not unset :
182193 kwargs ["last_flaked_branch" ] = last_flaked_branch
183194 if last_flaked_sha is not unset :
0 commit comments