20
20
if TYPE_CHECKING :
21
21
from datadog_api_client .v1 .model .synthetics_browser_error import SyntheticsBrowserError
22
22
from datadog_api_client .v1 .model .synthetics_check_type import SyntheticsCheckType
23
+ from datadog_api_client .v1 .model .synthetics_browser_test_result_failure import SyntheticsBrowserTestResultFailure
23
24
from datadog_api_client .v1 .model .synthetics_playing_tab import SyntheticsPlayingTab
24
25
from datadog_api_client .v1 .model .synthetics_step_type import SyntheticsStepType
25
26
from datadog_api_client .v1 .model .synthetics_core_web_vitals import SyntheticsCoreWebVitals
@@ -31,17 +32,22 @@ class SyntheticsStepDetail(ModelNormal):
31
32
def openapi_types (_ ):
32
33
from datadog_api_client .v1 .model .synthetics_browser_error import SyntheticsBrowserError
33
34
from datadog_api_client .v1 .model .synthetics_check_type import SyntheticsCheckType
35
+ from datadog_api_client .v1 .model .synthetics_browser_test_result_failure import (
36
+ SyntheticsBrowserTestResultFailure ,
37
+ )
34
38
from datadog_api_client .v1 .model .synthetics_playing_tab import SyntheticsPlayingTab
35
39
from datadog_api_client .v1 .model .synthetics_step_type import SyntheticsStepType
36
40
from datadog_api_client .v1 .model .synthetics_core_web_vitals import SyntheticsCoreWebVitals
37
41
from datadog_api_client .v1 .model .synthetics_step_detail_warning import SyntheticsStepDetailWarning
38
42
39
43
return {
44
+ "allow_failure" : (bool ,),
40
45
"browser_errors" : ([SyntheticsBrowserError ],),
41
46
"check_type" : (SyntheticsCheckType ,),
42
47
"description" : (str ,),
43
48
"duration" : (float ,),
44
49
"error" : (str ,),
50
+ "failure" : (SyntheticsBrowserTestResultFailure ,),
45
51
"playing_tab" : (SyntheticsPlayingTab ,),
46
52
"screenshot_bucket_key" : (bool ,),
47
53
"skipped" : (bool ,),
@@ -68,11 +74,13 @@ def openapi_types(_):
68
74
}
69
75
70
76
attribute_map = {
77
+ "allow_failure" : "allowFailure" ,
71
78
"browser_errors" : "browserErrors" ,
72
79
"check_type" : "checkType" ,
73
80
"description" : "description" ,
74
81
"duration" : "duration" ,
75
82
"error" : "error" ,
83
+ "failure" : "failure" ,
76
84
"playing_tab" : "playingTab" ,
77
85
"screenshot_bucket_key" : "screenshotBucketKey" ,
78
86
"skipped" : "skipped" ,
@@ -89,11 +97,13 @@ def openapi_types(_):
89
97
90
98
def __init__ (
91
99
self_ ,
100
+ allow_failure : Union [bool , UnsetType ] = unset ,
92
101
browser_errors : Union [List [SyntheticsBrowserError ], UnsetType ] = unset ,
93
102
check_type : Union [SyntheticsCheckType , UnsetType ] = unset ,
94
103
description : Union [str , UnsetType ] = unset ,
95
104
duration : Union [float , UnsetType ] = unset ,
96
105
error : Union [str , UnsetType ] = unset ,
106
+ failure : Union [SyntheticsBrowserTestResultFailure , UnsetType ] = unset ,
97
107
playing_tab : Union [SyntheticsPlayingTab , UnsetType ] = unset ,
98
108
screenshot_bucket_key : Union [bool , UnsetType ] = unset ,
99
109
skipped : Union [bool , UnsetType ] = unset ,
@@ -111,6 +121,9 @@ def __init__(
111
121
"""
112
122
Object describing a step for a Synthetic test.
113
123
124
+ :param allow_failure: Whether or not the step was allowed to fail.
125
+ :type allow_failure: bool, optional
126
+
114
127
:param browser_errors: Array of errors collected for a browser test.
115
128
:type browser_errors: [SyntheticsBrowserError], optional
116
129
@@ -126,6 +139,9 @@ def __init__(
126
139
:param error: Error returned by the test.
127
140
:type error: str, optional
128
141
142
+ :param failure: The browser test failure details.
143
+ :type failure: SyntheticsBrowserTestResultFailure, optional
144
+
129
145
:param playing_tab: Navigate between different tabs for your browser test.
130
146
:type playing_tab: SyntheticsPlayingTab, optional
131
147
@@ -163,6 +179,8 @@ def __init__(
163
179
:param warnings: Warning collected that didn't failed the step.
164
180
:type warnings: [SyntheticsStepDetailWarning], optional
165
181
"""
182
+ if allow_failure is not unset :
183
+ kwargs ["allow_failure" ] = allow_failure
166
184
if browser_errors is not unset :
167
185
kwargs ["browser_errors" ] = browser_errors
168
186
if check_type is not unset :
@@ -173,6 +191,8 @@ def __init__(
173
191
kwargs ["duration" ] = duration
174
192
if error is not unset :
175
193
kwargs ["error" ] = error
194
+ if failure is not unset :
195
+ kwargs ["failure" ] = failure
176
196
if playing_tab is not unset :
177
197
kwargs ["playing_tab" ] = playing_tab
178
198
if screenshot_bucket_key is not unset :
0 commit comments