Skip to content

Fix Synthetics batch status #1891

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-04 21:14:26.172290",
"spec_repo_commit": "08338fd1"
"regenerated": "2024-11-05 15:05:56.262037",
"spec_repo_commit": "8d63eae4"
},
"v2": {
"apigentools_version": "1.6.6",
"regenerated": "2024-11-04 21:14:26.190771",
"spec_repo_commit": "08338fd1"
"regenerated": "2024-11-05 15:05:56.280323",
"spec_repo_commit": "8d63eae4"
}
}
}
27 changes: 13 additions & 14 deletions .generator/schemas/v1/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14418,7 +14418,7 @@ components:
$ref: '#/components/schemas/SyntheticsBatchResult'
type: array
status:
$ref: '#/components/schemas/SyntheticsStatus'
$ref: '#/components/schemas/SyntheticsBatchStatus'
type: object
SyntheticsBatchResult:
description: Object with the results of a Synthetic batch.
Expand All @@ -14442,7 +14442,7 @@ components:
format: double
type: number
status:
$ref: '#/components/schemas/SyntheticsStatus'
$ref: '#/components/schemas/SyntheticsBatchStatus'
test_name:
description: Name of the test.
type: string
Expand All @@ -14452,6 +14452,17 @@ components:
test_type:
$ref: '#/components/schemas/SyntheticsTestDetailsType'
type: object
SyntheticsBatchStatus:
description: Determines whether the batch has passed, failed, or is in progress.
enum:
- passed
- skipped
- failed
type: string
x-enum-varnames:
- PASSED
- SKIPPED
- FAILED
SyntheticsBrowserError:
description: Error response object for a browser test.
properties:
Expand Down Expand Up @@ -16210,18 +16221,6 @@ components:
description: Subject Alternative Name associated with the certificate.
type: string
type: object
SyntheticsStatus:
description: Determines whether or not the batch has passed, failed, or is in
progress.
enum:
- passed
- skipped
- failed
type: string
x-enum-varnames:
- PASSED
- skipped
- failed
SyntheticsStep:
description: The steps used in a Synthetic browser test.
properties:
Expand Down
2 changes: 1 addition & 1 deletion packages/datadog-api-client-v1/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,7 @@ export { SyntheticsBasicAuthWebType } from "./models/SyntheticsBasicAuthWebType"
export { SyntheticsBatchDetails } from "./models/SyntheticsBatchDetails";
export { SyntheticsBatchDetailsData } from "./models/SyntheticsBatchDetailsData";
export { SyntheticsBatchResult } from "./models/SyntheticsBatchResult";
export { SyntheticsBatchStatus } from "./models/SyntheticsBatchStatus";
export { SyntheticsBrowserError } from "./models/SyntheticsBrowserError";
export { SyntheticsBrowserErrorType } from "./models/SyntheticsBrowserErrorType";
export { SyntheticsBrowserTest } from "./models/SyntheticsBrowserTest";
Expand Down Expand Up @@ -991,7 +992,6 @@ export { SyntheticsPrivateLocationSecretsConfigDecryption } from "./models/Synth
export { SyntheticsSSLCertificate } from "./models/SyntheticsSSLCertificate";
export { SyntheticsSSLCertificateIssuer } from "./models/SyntheticsSSLCertificateIssuer";
export { SyntheticsSSLCertificateSubject } from "./models/SyntheticsSSLCertificateSubject";
export { SyntheticsStatus } from "./models/SyntheticsStatus";
export { SyntheticsStep } from "./models/SyntheticsStep";
export { SyntheticsStepDetail } from "./models/SyntheticsStepDetail";
export { SyntheticsStepDetailWarning } from "./models/SyntheticsStepDetailWarning";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1277,6 +1277,7 @@ const enumsMap: { [key: string]: any[] } = {
SyntheticsBasicAuthOauthTokenApiAuthentication: ["header", "body"],
SyntheticsBasicAuthSigv4Type: ["sigv4"],
SyntheticsBasicAuthWebType: ["web"],
SyntheticsBatchStatus: ["passed", "skipped", "failed"],
SyntheticsBrowserErrorType: ["network", "js"],
SyntheticsBrowserTestFailureCode: [
"API_REQUEST_FAILURE",
Expand Down Expand Up @@ -1405,7 +1406,6 @@ const enumsMap: { [key: string]: any[] } = {
"test",
],
SyntheticsPlayingTab: [-1, 0, 1, 2, 3],
SyntheticsStatus: ["passed", "skipped", "failed"],
SyntheticsStepType: [
"assertCurrentUrl",
"assertElementAttribute",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
* Copyright 2020-Present Datadog, Inc.
*/
import { SyntheticsBatchResult } from "./SyntheticsBatchResult";
import { SyntheticsBatchStatus } from "./SyntheticsBatchStatus";
import { SyntheticsCIBatchMetadata } from "./SyntheticsCIBatchMetadata";
import { SyntheticsStatus } from "./SyntheticsStatus";

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

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

/**
* A container for additional, undeclared properties.
Expand Down Expand Up @@ -52,7 +52,7 @@ export class SyntheticsBatchDetailsData {
},
status: {
baseName: "status",
type: "SyntheticsStatus",
type: "SyntheticsBatchStatus",
},
additionalProperties: {
baseName: "additionalProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
import { SyntheticsBatchStatus } from "./SyntheticsBatchStatus";
import { SyntheticsDeviceID } from "./SyntheticsDeviceID";
import { SyntheticsStatus } from "./SyntheticsStatus";
import { SyntheticsTestDetailsType } from "./SyntheticsTestDetailsType";
import { SyntheticsTestExecutionRule } from "./SyntheticsTestExecutionRule";

Expand Down Expand Up @@ -39,9 +39,9 @@ export class SyntheticsBatchResult {
*/
"retries"?: number;
/**
* Determines whether or not the batch has passed, failed, or is in progress.
* Determines whether the batch has passed, failed, or is in progress.
*/
"status"?: SyntheticsStatus;
"status"?: SyntheticsBatchStatus;
/**
* Name of the test.
*/
Expand Down Expand Up @@ -99,7 +99,7 @@ export class SyntheticsBatchResult {
},
status: {
baseName: "status",
type: "SyntheticsStatus",
type: "SyntheticsBatchStatus",
},
testName: {
baseName: "test_name",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
import { UnparsedObject } from "../../datadog-api-client-common/util";

/**
* Determines whether or not the batch has passed, failed, or is in progress.
* Determines whether the batch has passed, failed, or is in progress.
*/

export type SyntheticsStatus =
export type SyntheticsBatchStatus =
| typeof PASSED
| typeof skipped
| typeof failed
| typeof SKIPPED
| typeof FAILED
| UnparsedObject;
export const PASSED = "passed";
export const skipped = "skipped";
export const failed = "failed";
export const SKIPPED = "skipped";
export const FAILED = "failed";
Loading