Skip to content

Commit e8749d6

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authored
Fix Synthetics batch status (#1891)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 65a8e96 commit e8749d6

File tree

7 files changed

+33
-34
lines changed

7 files changed

+33
-34
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-11-04 21:14:26.172290",
8-
"spec_repo_commit": "08338fd1"
7+
"regenerated": "2024-11-05 15:05:56.262037",
8+
"spec_repo_commit": "8d63eae4"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-11-04 21:14:26.190771",
13-
"spec_repo_commit": "08338fd1"
12+
"regenerated": "2024-11-05 15:05:56.280323",
13+
"spec_repo_commit": "8d63eae4"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -14418,7 +14418,7 @@ components:
1441814418
$ref: '#/components/schemas/SyntheticsBatchResult'
1441914419
type: array
1442014420
status:
14421-
$ref: '#/components/schemas/SyntheticsStatus'
14421+
$ref: '#/components/schemas/SyntheticsBatchStatus'
1442214422
type: object
1442314423
SyntheticsBatchResult:
1442414424
description: Object with the results of a Synthetic batch.
@@ -14442,7 +14442,7 @@ components:
1444214442
format: double
1444314443
type: number
1444414444
status:
14445-
$ref: '#/components/schemas/SyntheticsStatus'
14445+
$ref: '#/components/schemas/SyntheticsBatchStatus'
1444614446
test_name:
1444714447
description: Name of the test.
1444814448
type: string
@@ -14452,6 +14452,17 @@ components:
1445214452
test_type:
1445314453
$ref: '#/components/schemas/SyntheticsTestDetailsType'
1445414454
type: object
14455+
SyntheticsBatchStatus:
14456+
description: Determines whether the batch has passed, failed, or is in progress.
14457+
enum:
14458+
- passed
14459+
- skipped
14460+
- failed
14461+
type: string
14462+
x-enum-varnames:
14463+
- PASSED
14464+
- SKIPPED
14465+
- FAILED
1445514466
SyntheticsBrowserError:
1445614467
description: Error response object for a browser test.
1445714468
properties:
@@ -16210,18 +16221,6 @@ components:
1621016221
description: Subject Alternative Name associated with the certificate.
1621116222
type: string
1621216223
type: object
16213-
SyntheticsStatus:
16214-
description: Determines whether or not the batch has passed, failed, or is in
16215-
progress.
16216-
enum:
16217-
- passed
16218-
- skipped
16219-
- failed
16220-
type: string
16221-
x-enum-varnames:
16222-
- PASSED
16223-
- skipped
16224-
- failed
1622516224
SyntheticsStep:
1622616225
description: The steps used in a Synthetic browser test.
1622716226
properties:

packages/datadog-api-client-v1/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -909,6 +909,7 @@ export { SyntheticsBasicAuthWebType } from "./models/SyntheticsBasicAuthWebType"
909909
export { SyntheticsBatchDetails } from "./models/SyntheticsBatchDetails";
910910
export { SyntheticsBatchDetailsData } from "./models/SyntheticsBatchDetailsData";
911911
export { SyntheticsBatchResult } from "./models/SyntheticsBatchResult";
912+
export { SyntheticsBatchStatus } from "./models/SyntheticsBatchStatus";
912913
export { SyntheticsBrowserError } from "./models/SyntheticsBrowserError";
913914
export { SyntheticsBrowserErrorType } from "./models/SyntheticsBrowserErrorType";
914915
export { SyntheticsBrowserTest } from "./models/SyntheticsBrowserTest";
@@ -991,7 +992,6 @@ export { SyntheticsPrivateLocationSecretsConfigDecryption } from "./models/Synth
991992
export { SyntheticsSSLCertificate } from "./models/SyntheticsSSLCertificate";
992993
export { SyntheticsSSLCertificateIssuer } from "./models/SyntheticsSSLCertificateIssuer";
993994
export { SyntheticsSSLCertificateSubject } from "./models/SyntheticsSSLCertificateSubject";
994-
export { SyntheticsStatus } from "./models/SyntheticsStatus";
995995
export { SyntheticsStep } from "./models/SyntheticsStep";
996996
export { SyntheticsStepDetail } from "./models/SyntheticsStepDetail";
997997
export { SyntheticsStepDetailWarning } from "./models/SyntheticsStepDetailWarning";

packages/datadog-api-client-v1/models/ObjectSerializer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1277,6 +1277,7 @@ const enumsMap: { [key: string]: any[] } = {
12771277
SyntheticsBasicAuthOauthTokenApiAuthentication: ["header", "body"],
12781278
SyntheticsBasicAuthSigv4Type: ["sigv4"],
12791279
SyntheticsBasicAuthWebType: ["web"],
1280+
SyntheticsBatchStatus: ["passed", "skipped", "failed"],
12801281
SyntheticsBrowserErrorType: ["network", "js"],
12811282
SyntheticsBrowserTestFailureCode: [
12821283
"API_REQUEST_FAILURE",
@@ -1405,7 +1406,6 @@ const enumsMap: { [key: string]: any[] } = {
14051406
"test",
14061407
],
14071408
SyntheticsPlayingTab: [-1, 0, 1, 2, 3],
1408-
SyntheticsStatus: ["passed", "skipped", "failed"],
14091409
SyntheticsStepType: [
14101410
"assertCurrentUrl",
14111411
"assertElementAttribute",

packages/datadog-api-client-v1/models/SyntheticsBatchDetailsData.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* Copyright 2020-Present Datadog, Inc.
55
*/
66
import { SyntheticsBatchResult } from "./SyntheticsBatchResult";
7+
import { SyntheticsBatchStatus } from "./SyntheticsBatchStatus";
78
import { SyntheticsCIBatchMetadata } from "./SyntheticsCIBatchMetadata";
8-
import { SyntheticsStatus } from "./SyntheticsStatus";
99

1010
import { AttributeTypeMap } from "../../datadog-api-client-common/util";
1111

@@ -22,9 +22,9 @@ export class SyntheticsBatchDetailsData {
2222
*/
2323
"results"?: Array<SyntheticsBatchResult>;
2424
/**
25-
* Determines whether or not the batch has passed, failed, or is in progress.
25+
* Determines whether the batch has passed, failed, or is in progress.
2626
*/
27-
"status"?: SyntheticsStatus;
27+
"status"?: SyntheticsBatchStatus;
2828

2929
/**
3030
* A container for additional, undeclared properties.
@@ -52,7 +52,7 @@ export class SyntheticsBatchDetailsData {
5252
},
5353
status: {
5454
baseName: "status",
55-
type: "SyntheticsStatus",
55+
type: "SyntheticsBatchStatus",
5656
},
5757
additionalProperties: {
5858
baseName: "additionalProperties",

packages/datadog-api-client-v1/models/SyntheticsBatchResult.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
* This product includes software developed at Datadog (https://www.datadoghq.com/).
44
* Copyright 2020-Present Datadog, Inc.
55
*/
6+
import { SyntheticsBatchStatus } from "./SyntheticsBatchStatus";
67
import { SyntheticsDeviceID } from "./SyntheticsDeviceID";
7-
import { SyntheticsStatus } from "./SyntheticsStatus";
88
import { SyntheticsTestDetailsType } from "./SyntheticsTestDetailsType";
99
import { SyntheticsTestExecutionRule } from "./SyntheticsTestExecutionRule";
1010

@@ -39,9 +39,9 @@ export class SyntheticsBatchResult {
3939
*/
4040
"retries"?: number;
4141
/**
42-
* Determines whether or not the batch has passed, failed, or is in progress.
42+
* Determines whether the batch has passed, failed, or is in progress.
4343
*/
44-
"status"?: SyntheticsStatus;
44+
"status"?: SyntheticsBatchStatus;
4545
/**
4646
* Name of the test.
4747
*/
@@ -99,7 +99,7 @@ export class SyntheticsBatchResult {
9999
},
100100
status: {
101101
baseName: "status",
102-
type: "SyntheticsStatus",
102+
type: "SyntheticsBatchStatus",
103103
},
104104
testName: {
105105
baseName: "test_name",

packages/datadog-api-client-v1/models/SyntheticsStatus.ts renamed to packages/datadog-api-client-v1/models/SyntheticsBatchStatus.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
import { UnparsedObject } from "../../datadog-api-client-common/util";
88

99
/**
10-
* Determines whether or not the batch has passed, failed, or is in progress.
10+
* Determines whether the batch has passed, failed, or is in progress.
1111
*/
1212

13-
export type SyntheticsStatus =
13+
export type SyntheticsBatchStatus =
1414
| typeof PASSED
15-
| typeof skipped
16-
| typeof failed
15+
| typeof SKIPPED
16+
| typeof FAILED
1717
| UnparsedObject;
1818
export const PASSED = "passed";
19-
export const skipped = "skipped";
20-
export const failed = "failed";
19+
export const SKIPPED = "skipped";
20+
export const FAILED = "failed";

0 commit comments

Comments
 (0)