Skip to content

Commit 26c48a1

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add synthetics stepDetail.allowFailure and stepDetail.failure (#2531)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent b2810e3 commit 26c48a1

File tree

3 files changed

+67
-5
lines changed

3 files changed

+67
-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:51.129731",
8-
"spec_repo_commit": "9ac9609b"
7+
"regenerated": "2024-10-23 10:08:14.505966",
8+
"spec_repo_commit": "df3187ca"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-10-21 20:59:51.148611",
13-
"spec_repo_commit": "9ac9609b"
12+
"regenerated": "2024-10-23 10:08:14.525893",
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:

src/main/java/com/datadog/api/client/v1/model/SyntheticsStepDetail.java

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,13 @@
2020

2121
/** Object describing a step for a Synthetic test. */
2222
@JsonPropertyOrder({
23+
SyntheticsStepDetail.JSON_PROPERTY_ALLOW_FAILURE,
2324
SyntheticsStepDetail.JSON_PROPERTY_BROWSER_ERRORS,
2425
SyntheticsStepDetail.JSON_PROPERTY_CHECK_TYPE,
2526
SyntheticsStepDetail.JSON_PROPERTY_DESCRIPTION,
2627
SyntheticsStepDetail.JSON_PROPERTY_DURATION,
2728
SyntheticsStepDetail.JSON_PROPERTY_ERROR,
29+
SyntheticsStepDetail.JSON_PROPERTY_FAILURE,
2830
SyntheticsStepDetail.JSON_PROPERTY_PLAYING_TAB,
2931
SyntheticsStepDetail.JSON_PROPERTY_SCREENSHOT_BUCKET_KEY,
3032
SyntheticsStepDetail.JSON_PROPERTY_SKIPPED,
@@ -42,6 +44,9 @@
4244
value = "https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
4345
public class SyntheticsStepDetail {
4446
@JsonIgnore public boolean unparsed = false;
47+
public static final String JSON_PROPERTY_ALLOW_FAILURE = "allowFailure";
48+
private Boolean allowFailure;
49+
4550
public static final String JSON_PROPERTY_BROWSER_ERRORS = "browserErrors";
4651
private List<SyntheticsBrowserError> browserErrors = null;
4752

@@ -57,6 +62,9 @@ public class SyntheticsStepDetail {
5762
public static final String JSON_PROPERTY_ERROR = "error";
5863
private String error;
5964

65+
public static final String JSON_PROPERTY_FAILURE = "failure";
66+
private SyntheticsBrowserTestResultFailure failure;
67+
6068
public static final String JSON_PROPERTY_PLAYING_TAB = "playingTab";
6169
private SyntheticsPlayingTab playingTab;
6270

@@ -93,6 +101,27 @@ public class SyntheticsStepDetail {
93101
public static final String JSON_PROPERTY_WARNINGS = "warnings";
94102
private List<SyntheticsStepDetailWarning> warnings = null;
95103

104+
public SyntheticsStepDetail allowFailure(Boolean allowFailure) {
105+
this.allowFailure = allowFailure;
106+
return this;
107+
}
108+
109+
/**
110+
* Whether or not the step was allowed to fail.
111+
*
112+
* @return allowFailure
113+
*/
114+
@jakarta.annotation.Nullable
115+
@JsonProperty(JSON_PROPERTY_ALLOW_FAILURE)
116+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
117+
public Boolean getAllowFailure() {
118+
return allowFailure;
119+
}
120+
121+
public void setAllowFailure(Boolean allowFailure) {
122+
this.allowFailure = allowFailure;
123+
}
124+
96125
public SyntheticsStepDetail browserErrors(List<SyntheticsBrowserError> browserErrors) {
97126
this.browserErrors = browserErrors;
98127
for (SyntheticsBrowserError item : browserErrors) {
@@ -214,6 +243,28 @@ public void setError(String error) {
214243
this.error = error;
215244
}
216245

246+
public SyntheticsStepDetail failure(SyntheticsBrowserTestResultFailure failure) {
247+
this.failure = failure;
248+
this.unparsed |= failure.unparsed;
249+
return this;
250+
}
251+
252+
/**
253+
* The browser test failure details.
254+
*
255+
* @return failure
256+
*/
257+
@jakarta.annotation.Nullable
258+
@JsonProperty(JSON_PROPERTY_FAILURE)
259+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
260+
public SyntheticsBrowserTestResultFailure getFailure() {
261+
return failure;
262+
}
263+
264+
public void setFailure(SyntheticsBrowserTestResultFailure failure) {
265+
this.failure = failure;
266+
}
267+
217268
public SyntheticsStepDetail playingTab(SyntheticsPlayingTab playingTab) {
218269
this.playingTab = playingTab;
219270
this.unparsed |= !playingTab.isValid();
@@ -569,11 +620,13 @@ public boolean equals(Object o) {
569620
return false;
570621
}
571622
SyntheticsStepDetail syntheticsStepDetail = (SyntheticsStepDetail) o;
572-
return Objects.equals(this.browserErrors, syntheticsStepDetail.browserErrors)
623+
return Objects.equals(this.allowFailure, syntheticsStepDetail.allowFailure)
624+
&& Objects.equals(this.browserErrors, syntheticsStepDetail.browserErrors)
573625
&& Objects.equals(this.checkType, syntheticsStepDetail.checkType)
574626
&& Objects.equals(this.description, syntheticsStepDetail.description)
575627
&& Objects.equals(this.duration, syntheticsStepDetail.duration)
576628
&& Objects.equals(this.error, syntheticsStepDetail.error)
629+
&& Objects.equals(this.failure, syntheticsStepDetail.failure)
577630
&& Objects.equals(this.playingTab, syntheticsStepDetail.playingTab)
578631
&& Objects.equals(this.screenshotBucketKey, syntheticsStepDetail.screenshotBucketKey)
579632
&& Objects.equals(this.skipped, syntheticsStepDetail.skipped)
@@ -592,11 +645,13 @@ public boolean equals(Object o) {
592645
@Override
593646
public int hashCode() {
594647
return Objects.hash(
648+
allowFailure,
595649
browserErrors,
596650
checkType,
597651
description,
598652
duration,
599653
error,
654+
failure,
600655
playingTab,
601656
screenshotBucketKey,
602657
skipped,
@@ -616,11 +671,13 @@ public int hashCode() {
616671
public String toString() {
617672
StringBuilder sb = new StringBuilder();
618673
sb.append("class SyntheticsStepDetail {\n");
674+
sb.append(" allowFailure: ").append(toIndentedString(allowFailure)).append("\n");
619675
sb.append(" browserErrors: ").append(toIndentedString(browserErrors)).append("\n");
620676
sb.append(" checkType: ").append(toIndentedString(checkType)).append("\n");
621677
sb.append(" description: ").append(toIndentedString(description)).append("\n");
622678
sb.append(" duration: ").append(toIndentedString(duration)).append("\n");
623679
sb.append(" error: ").append(toIndentedString(error)).append("\n");
680+
sb.append(" failure: ").append(toIndentedString(failure)).append("\n");
624681
sb.append(" playingTab: ").append(toIndentedString(playingTab)).append("\n");
625682
sb.append(" screenshotBucketKey: ")
626683
.append(toIndentedString(screenshotBucketKey))

0 commit comments

Comments
 (0)