Skip to content

Commit 66ba7df

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add synthetics stepDetail.allowFailure and stepDetail.failure (#2064)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent c294c38 commit 66ba7df

File tree

3 files changed

+30
-5
lines changed

3 files changed

+30
-5
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.6",
7-
"regenerated": "2024-10-21 20:59:42.794353",
8-
"spec_repo_commit": "9ac9609b"
7+
"regenerated": "2024-10-23 10:08:17.773830",
8+
"spec_repo_commit": "df3187ca"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-21 20:59:42.814827",
13-
"spec_repo_commit": "9ac9609b"
12+
"regenerated": "2024-10-23 10:08:17.792703",
13+
"spec_repo_commit": "df3187ca"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16168,6 +16168,9 @@ components:
1616816168
SyntheticsStepDetail:
1616916169
description: Object describing a step for a Synthetic test.
1617016170
properties:
16171+
allowFailure:
16172+
description: Whether or not the step was allowed to fail.
16173+
type: boolean
1617116174
browserErrors:
1617216175
description: Array of errors collected for a browser test.
1617316176
items:
@@ -16185,6 +16188,8 @@ components:
1618516188
error:
1618616189
description: Error returned by the test.
1618716190
type: string
16191+
failure:
16192+
$ref: '#/components/schemas/SyntheticsBrowserTestResultFailure'
1618816193
playingTab:
1618916194
$ref: '#/components/schemas/SyntheticsPlayingTab'
1619016195
screenshotBucketKey:

lib/datadog_api_client/v1/models/synthetics_step_detail.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V1
2121
class SyntheticsStepDetail
2222
include BaseGenericModel
2323

24+
# Whether or not the step was allowed to fail.
25+
attr_accessor :allow_failure
26+
2427
# Array of errors collected for a browser test.
2528
attr_accessor :browser_errors
2629

@@ -36,6 +39,9 @@ class SyntheticsStepDetail
3639
# Error returned by the test.
3740
attr_accessor :error
3841

42+
# The browser test failure details.
43+
attr_accessor :failure
44+
3945
# Navigate between different tabs for your browser test.
4046
attr_accessor :playing_tab
4147

@@ -79,11 +85,13 @@ class SyntheticsStepDetail
7985
# @!visibility private
8086
def self.attribute_map
8187
{
88+
:'allow_failure' => :'allowFailure',
8289
:'browser_errors' => :'browserErrors',
8390
:'check_type' => :'checkType',
8491
:'description' => :'description',
8592
:'duration' => :'duration',
8693
:'error' => :'error',
94+
:'failure' => :'failure',
8795
:'playing_tab' => :'playingTab',
8896
:'screenshot_bucket_key' => :'screenshotBucketKey',
8997
:'skipped' => :'skipped',
@@ -103,11 +111,13 @@ def self.attribute_map
103111
# @!visibility private
104112
def self.openapi_types
105113
{
114+
:'allow_failure' => :'Boolean',
106115
:'browser_errors' => :'Array<SyntheticsBrowserError>',
107116
:'check_type' => :'SyntheticsCheckType',
108117
:'description' => :'String',
109118
:'duration' => :'Float',
110119
:'error' => :'String',
120+
:'failure' => :'SyntheticsBrowserTestResultFailure',
111121
:'playing_tab' => :'SyntheticsPlayingTab',
112122
:'screenshot_bucket_key' => :'Boolean',
113123
:'skipped' => :'Boolean',
@@ -141,6 +151,10 @@ def initialize(attributes = {})
141151
end
142152
}
143153

154+
if attributes.key?(:'allow_failure')
155+
self.allow_failure = attributes[:'allow_failure']
156+
end
157+
144158
if attributes.key?(:'browser_errors')
145159
if (value = attributes[:'browser_errors']).is_a?(Array)
146160
self.browser_errors = value
@@ -163,6 +177,10 @@ def initialize(attributes = {})
163177
self.error = attributes[:'error']
164178
end
165179

180+
if attributes.key?(:'failure')
181+
self.failure = attributes[:'failure']
182+
end
183+
166184
if attributes.key?(:'playing_tab')
167185
self.playing_tab = attributes[:'playing_tab']
168186
end
@@ -244,11 +262,13 @@ def to_hash
244262
def ==(o)
245263
return true if self.equal?(o)
246264
self.class == o.class &&
265+
allow_failure == o.allow_failure &&
247266
browser_errors == o.browser_errors &&
248267
check_type == o.check_type &&
249268
description == o.description &&
250269
duration == o.duration &&
251270
error == o.error &&
271+
failure == o.failure &&
252272
playing_tab == o.playing_tab &&
253273
screenshot_bucket_key == o.screenshot_bucket_key &&
254274
skipped == o.skipped &&
@@ -268,7 +288,7 @@ def ==(o)
268288
# @return [Integer] Hash code
269289
# @!visibility private
270290
def hash
271-
[browser_errors, check_type, description, duration, error, playing_tab, screenshot_bucket_key, skipped, snapshot_bucket_key, step_id, sub_test_step_details, time_to_interactive, type, url, value, vitals_metrics, warnings].hash
291+
[allow_failure, browser_errors, check_type, description, duration, error, failure, playing_tab, screenshot_bucket_key, skipped, snapshot_bucket_key, step_id, sub_test_step_details, time_to_interactive, type, url, value, vitals_metrics, warnings].hash
272292
end
273293
end
274294
end

0 commit comments

Comments
 (0)