You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: api/v1/datadog/docs/SyntheticsAPIStep.md
+5-25Lines changed: 5 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,18 +5,18 @@
5
5
Name | Type | Description | Notes
6
6
---- | ---- | ----------- | ------
7
7
**AllowFailure** | Pointer to **bool** | Determines whether or not to continue with test if this step fails. | [optional]
8
-
**Assertions** | Pointer to [**[]SyntheticsAssertion**](SyntheticsAssertion.md) | Array of assertions used for the test. |[optional][default to []]
8
+
**Assertions** | [**[]SyntheticsAssertion**](SyntheticsAssertion.md) | Array of assertions used for the test. | [default to []]
9
9
**ExtractedValues** | Pointer to [**[]SyntheticsParsingOptions**](SyntheticsParsingOptions.md) | Array of values to parse and save as variables from the response. | [optional]
10
10
**IsCritical** | Pointer to **bool** | Determines whether or not to consider the entire test as failed if this step fails. Can be used only if `allowFailure` is `true`. | [optional]
11
-
**Name** | Pointer to **string** | The name of the step. |[optional]
12
-
**Request** | Pointer to [**SyntheticsTestRequest**](SyntheticsTestRequest.md) | |[optional]
13
-
**Subtype** | Pointer to [**SyntheticsAPIStepSubtype**](SyntheticsAPIStepSubtype.md) | |[optional]
`func NewSyntheticsAPIStep(assertions []SyntheticsAssertion, name string, request SyntheticsTestRequest, subtype SyntheticsAPIStepSubtype) *SyntheticsAPIStep`
20
20
21
21
NewSyntheticsAPIStep instantiates a new SyntheticsAPIStep object.
22
22
This constructor will assign default values to properties that have it defined,
@@ -75,11 +75,6 @@ and a boolean to check if the value has been set.
75
75
76
76
SetAssertions sets Assertions field to given value.
77
77
78
-
### HasAssertions
79
-
80
-
`func (o *SyntheticsAPIStep) HasAssertions() bool`
81
-
82
-
HasAssertions returns a boolean if a field has been set.
83
78
84
79
### GetExtractedValues
85
80
@@ -150,11 +145,6 @@ and a boolean to check if the value has been set.
150
145
151
146
SetName sets Name field to given value.
152
147
153
-
### HasName
154
-
155
-
`func (o *SyntheticsAPIStep) HasName() bool`
156
-
157
-
HasName returns a boolean if a field has been set.
158
148
159
149
### GetRequest
160
150
@@ -175,11 +165,6 @@ and a boolean to check if the value has been set.
175
165
176
166
SetRequest sets Request field to given value.
177
167
178
-
### HasRequest
179
-
180
-
`func (o *SyntheticsAPIStep) HasRequest() bool`
181
-
182
-
HasRequest returns a boolean if a field has been set.
183
168
184
169
### GetSubtype
185
170
@@ -200,11 +185,6 @@ and a boolean to check if the value has been set.
200
185
201
186
SetSubtype sets Subtype field to given value.
202
187
203
-
### HasSubtype
204
-
205
-
`func (o *SyntheticsAPIStep) HasSubtype() bool`
206
-
207
-
HasSubtype returns a boolean if a field has been set.
208
188
209
189
210
190
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
NewSyntheticsAPITest instantiates a new SyntheticsAPITest object.
26
26
This constructor will assign default values to properties that have it defined,
@@ -54,11 +54,6 @@ and a boolean to check if the value has been set.
54
54
55
55
SetConfig sets Config field to given value.
56
56
57
-
### HasConfig
58
-
59
-
`func (o *SyntheticsAPITest) HasConfig() bool`
60
-
61
-
HasConfig returns a boolean if a field has been set.
62
57
63
58
### GetLocations
64
59
@@ -79,11 +74,6 @@ and a boolean to check if the value has been set.
79
74
80
75
SetLocations sets Locations field to given value.
81
76
82
-
### HasLocations
83
-
84
-
`func (o *SyntheticsAPITest) HasLocations() bool`
85
-
86
-
HasLocations returns a boolean if a field has been set.
87
77
88
78
### GetMessage
89
79
@@ -154,11 +144,6 @@ and a boolean to check if the value has been set.
154
144
155
145
SetName sets Name field to given value.
156
146
157
-
### HasName
158
-
159
-
`func (o *SyntheticsAPITest) HasName() bool`
160
-
161
-
HasName returns a boolean if a field has been set.
162
147
163
148
### GetOptions
164
149
@@ -179,11 +164,6 @@ and a boolean to check if the value has been set.
179
164
180
165
SetOptions sets Options field to given value.
181
166
182
-
### HasOptions
183
-
184
-
`func (o *SyntheticsAPITest) HasOptions() bool`
185
-
186
-
HasOptions returns a boolean if a field has been set.
187
167
188
168
### GetPublicId
189
169
@@ -304,11 +284,6 @@ and a boolean to check if the value has been set.
304
284
305
285
SetType sets Type field to given value.
306
286
307
-
### HasType
308
-
309
-
`func (o *SyntheticsAPITest) HasType() bool`
310
-
311
-
HasType returns a boolean if a field has been set.
312
287
313
288
314
289
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
body:= *datadog.NewSyntheticsAPITest() // SyntheticsAPITest | Details of the test to create.
199
+
body:= *datadog.NewSyntheticsAPITest(*datadog.NewSyntheticsAPITestConfig(), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsAPITestType("api")) // SyntheticsAPITest | Details of the test to create.
body:= *datadog.NewSyntheticsBrowserTest("Message_example") // SyntheticsBrowserTest | Details of the test to create.
269
+
body:= *datadog.NewSyntheticsBrowserTest(*datadog.NewSyntheticsBrowserTestConfig([]datadog.SyntheticsAssertion{datadog.SyntheticsAssertion{SyntheticsAssertionJSONPathTarget: datadog.NewSyntheticsAssertionJSONPathTarget(datadog.SyntheticsAssertionJSONPathOperator("validatesJSONPath"), datadog.SyntheticsAssertionType("body"))}}, *datadog.NewSyntheticsTestRequest()), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsBrowserTestType("browser")) // SyntheticsBrowserTest | Details of the test to create.
publicId:="publicId_example"// string | The public ID of the test to get details from.
1686
-
body:= *datadog.NewSyntheticsAPITest() // SyntheticsAPITest | New test details to be saved.
1686
+
body:= *datadog.NewSyntheticsAPITest(*datadog.NewSyntheticsAPITestConfig(), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsAPITestType("api")) // SyntheticsAPITest | New test details to be saved.
publicId:="publicId_example"// string | The public ID of the test to get details from.
1758
-
body:= *datadog.NewSyntheticsBrowserTest("Message_example") // SyntheticsBrowserTest | New test details to be saved.
1758
+
body:= *datadog.NewSyntheticsBrowserTest(*datadog.NewSyntheticsBrowserTestConfig([]datadog.SyntheticsAssertion{datadog.SyntheticsAssertion{SyntheticsAssertionJSONPathTarget: datadog.NewSyntheticsAssertionJSONPathTarget(datadog.SyntheticsAssertionJSONPathOperator("validatesJSONPath"), datadog.SyntheticsAssertionType("body"))}}, *datadog.NewSyntheticsTestRequest()), []string{"Locations_example"}, "Example test name", *datadog.NewSyntheticsTestOptions(), datadog.SyntheticsBrowserTestType("browser")) // SyntheticsBrowserTest | New test details to be saved.
NewSyntheticsBrowserTest instantiates a new SyntheticsBrowserTest object.
26
26
This constructor will assign default values to properties that have it defined,
@@ -54,11 +54,6 @@ and a boolean to check if the value has been set.
54
54
55
55
SetConfig sets Config field to given value.
56
56
57
-
### HasConfig
58
-
59
-
`func (o *SyntheticsBrowserTest) HasConfig() bool`
60
-
61
-
HasConfig returns a boolean if a field has been set.
62
57
63
58
### GetLocations
64
59
@@ -79,11 +74,6 @@ and a boolean to check if the value has been set.
79
74
80
75
SetLocations sets Locations field to given value.
81
76
82
-
### HasLocations
83
-
84
-
`func (o *SyntheticsBrowserTest) HasLocations() bool`
85
-
86
-
HasLocations returns a boolean if a field has been set.
87
77
88
78
### GetMessage
89
79
@@ -104,6 +94,11 @@ and a boolean to check if the value has been set.
104
94
105
95
SetMessage sets Message field to given value.
106
96
97
+
### HasMessage
98
+
99
+
`func (o *SyntheticsBrowserTest) HasMessage() bool`
100
+
101
+
HasMessage returns a boolean if a field has been set.
107
102
108
103
### GetMonitorId
109
104
@@ -149,11 +144,6 @@ and a boolean to check if the value has been set.
149
144
150
145
SetName sets Name field to given value.
151
146
152
-
### HasName
153
-
154
-
`func (o *SyntheticsBrowserTest) HasName() bool`
155
-
156
-
HasName returns a boolean if a field has been set.
157
147
158
148
### GetOptions
159
149
@@ -174,11 +164,6 @@ and a boolean to check if the value has been set.
174
164
175
165
SetOptions sets Options field to given value.
176
166
177
-
### HasOptions
178
-
179
-
`func (o *SyntheticsBrowserTest) HasOptions() bool`
180
-
181
-
HasOptions returns a boolean if a field has been set.
182
167
183
168
### GetPublicId
184
169
@@ -299,11 +284,6 @@ and a boolean to check if the value has been set.
299
284
300
285
SetType sets Type field to given value.
301
286
302
-
### HasType
303
-
304
-
`func (o *SyntheticsBrowserTest) HasType() bool`
305
-
306
-
HasType returns a boolean if a field has been set.
307
287
308
288
309
289
[[Back to Model list]](../README.md#documentation-for-models)[[Back to API list]](../README.md#documentation-for-api-endpoints)[[Back to README]](../README.md)
0 commit comments