Skip to content

Commit 4a5986b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add readonly ID of synthetics test steps (#2747)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 35f3086 commit 4a5986b

File tree

3 files changed

+26
-0
lines changed

3 files changed

+26
-0
lines changed

.generator/schemas/v1/openapi.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14413,6 +14413,11 @@ components:
1441314413
extractedValuesFromScript:
1441414414
description: Generate variables using JavaScript.
1441514415
type: string
14416+
id:
14417+
description: ID of the step.
14418+
example: abc-def-123
14419+
readOnly: true
14420+
type: string
1441614421
isCritical:
1441714422
description: 'Determines whether or not to consider the entire test as failed
1441814423
if this step fails.
@@ -14469,6 +14474,11 @@ components:
1446914474
SyntheticsAPIWaitStep:
1447014475
description: The Wait step used in a Synthetic multi-step API test.
1447114476
properties:
14477+
id:
14478+
description: ID of the step.
14479+
example: abc-def-123
14480+
readOnly: true
14481+
type: string
1447214482
name:
1447314483
description: The name of the step.
1447414484
example: Example step name

services/synthetics/src/v1/models/SyntheticsAPITestStep.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ export class SyntheticsAPITestStep {
3030
* Generate variables using JavaScript.
3131
*/
3232
"extractedValuesFromScript"?: string;
33+
/**
34+
* ID of the step.
35+
*/
36+
"id"?: string;
3337
/**
3438
* Determines whether or not to consider the entire test as failed if this step fails.
3539
* Can be used only if `allowFailure` is `true`.
@@ -87,6 +91,10 @@ export class SyntheticsAPITestStep {
8791
baseName: "extractedValuesFromScript",
8892
type: "string",
8993
},
94+
id: {
95+
baseName: "id",
96+
type: "string",
97+
},
9098
isCritical: {
9199
baseName: "isCritical",
92100
type: "boolean",

services/synthetics/src/v1/models/SyntheticsAPIWaitStep.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { SyntheticsAPIWaitStepSubtype } from "./SyntheticsAPIWaitStepSubtype";
66
* The Wait step used in a Synthetic multi-step API test.
77
*/
88
export class SyntheticsAPIWaitStep {
9+
/**
10+
* ID of the step.
11+
*/
12+
"id"?: string;
913
/**
1014
* The name of the step.
1115
*/
@@ -33,6 +37,10 @@ export class SyntheticsAPIWaitStep {
3337
* @ignore
3438
*/
3539
static readonly attributeTypeMap: AttributeTypeMap = {
40+
id: {
41+
baseName: "id",
42+
type: "string",
43+
},
3644
name: {
3745
baseName: "name",
3846
type: "string",

0 commit comments

Comments
 (0)