Skip to content

Commit 20d3a7d

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e1f3938 of spec repo
1 parent 6b5328a commit 20d3a7d

File tree

7 files changed

+104
-17
lines changed

7 files changed

+104
-17
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.2",
7-
"regenerated": "2022-02-03 09:45:21.849075",
8-
"spec_repo_commit": "f7a8bd6"
7+
"regenerated": "2022-02-10 11:50:31.695291",
8+
"spec_repo_commit": "e1f3938"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-02-03 09:45:21.862721",
13-
"spec_repo_commit": "f7a8bd6"
12+
"regenerated": "2022-02-10 11:50:31.709442",
13+
"spec_repo_commit": "e1f3938"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11527,6 +11527,10 @@ components:
1152711527
allowFailure:
1152811528
description: A boolean set to allow this step to fail.
1152911529
type: boolean
11530+
isCritical:
11531+
description: A boolean to use in addition to `allowFailure` to determine
11532+
if the test should be marked as failed when the step fails.
11533+
type: boolean
1153011534
name:
1153111535
description: The name of the step.
1153211536
type: string

api/v1/datadog/docs/SyntheticsStep.md

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
## Properties
44

5-
| Name | Type | Description | Notes |
6-
| ---------------- | ---------------------------------------------------------- | ----------------------------------------- | ---------- |
7-
| **AllowFailure** | Pointer to **bool** | A boolean set to allow this step to fail. | [optional] |
8-
| **Name** | Pointer to **string** | The name of the step. | [optional] |
9-
| **Params** | Pointer to **interface{}** | The parameters of the step. | [optional] |
10-
| **Timeout** | Pointer to **int64** | The time before declaring a step failed. | [optional] |
11-
| **Type** | Pointer to [**SyntheticsStepType**](SyntheticsStepType.md) | | [optional] |
5+
| Name | Type | Description | Notes |
6+
| ---------------- | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ---------- |
7+
| **AllowFailure** | Pointer to **bool** | A boolean set to allow this step to fail. | [optional] |
8+
| **IsCritical** | Pointer to **bool** | A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails. | [optional] |
9+
| **Name** | Pointer to **string** | The name of the step. | [optional] |
10+
| **Params** | Pointer to **interface{}** | The parameters of the step. | [optional] |
11+
| **Timeout** | Pointer to **int64** | The time before declaring a step failed. | [optional] |
12+
| **Type** | Pointer to [**SyntheticsStepType**](SyntheticsStepType.md) | | [optional] |
1213

1314
## Methods
1415

@@ -54,6 +55,31 @@ SetAllowFailure sets AllowFailure field to given value.
5455

5556
HasAllowFailure returns a boolean if a field has been set.
5657

58+
### GetIsCritical
59+
60+
`func (o *SyntheticsStep) GetIsCritical() bool`
61+
62+
GetIsCritical returns the IsCritical field if non-nil, zero value otherwise.
63+
64+
### GetIsCriticalOk
65+
66+
`func (o *SyntheticsStep) GetIsCriticalOk() (*bool, bool)`
67+
68+
GetIsCriticalOk returns a tuple with the IsCritical field if it's non-nil, zero value otherwise
69+
and a boolean to check if the value has been set.
70+
71+
### SetIsCritical
72+
73+
`func (o *SyntheticsStep) SetIsCritical(v bool)`
74+
75+
SetIsCritical sets IsCritical field to given value.
76+
77+
### HasIsCritical
78+
79+
`func (o *SyntheticsStep) HasIsCritical() bool`
80+
81+
HasIsCritical returns a boolean if a field has been set.
82+
5783
### GetName
5884

5985
`func (o *SyntheticsStep) GetName() string`

api/v1/datadog/model_synthetics_step.go

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v1/synthetics/CreateSyntheticsBrowserTest.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ func main() {
5555
"testing:browser",
5656
},
5757
Type: datadog.SYNTHETICSBROWSERTESTTYPE_BROWSER,
58+
Steps: &[]datadog.SyntheticsStep{
59+
{
60+
AllowFailure: datadog.PtrBool(false),
61+
IsCritical: datadog.PtrBool(true),
62+
Name: datadog.PtrString("Refresh page"),
63+
Params: &datadog.SyntheticsStepParams{},
64+
Type: datadog.SYNTHETICSSTEPTYPE_REFRESH.Ptr(),
65+
},
66+
},
5867
}
5968
ctx := datadog.NewDefaultContext(context.Background())
6069
configuration := datadog.NewConfiguration()

0 commit comments

Comments
 (0)