@@ -21,18 +21,18 @@ import (
21
21
// Common and shared struct models used for more complex requests
22
22
type Networkconnection struct {
23
23
Description string `json:"description,omitempty"`
24
- Downloadbandwidth int `json:"download_bandwidth ,omitempty"`
24
+ Downloadbandwidth int `json:"downloadBandwidth ,omitempty"`
25
25
Latency int `json:"latency,omitempty"`
26
- Packetloss int `json:"packet_loss ,omitempty"`
27
- Uploadbandwidth int `json:"upload_bandwidth ,omitempty"`
26
+ Packetloss int `json:"packetLoss ,omitempty"`
27
+ Uploadbandwidth int `json:"uploadBandwidth ,omitempty"`
28
28
}
29
29
30
30
type Advancedsettings struct {
31
31
Authentication `json:"authentication"`
32
32
Cookiesv2 []Cookiesv2 `json:"cookies"`
33
33
BrowserHeaders []BrowserHeaders `json:"headers,omitempty"`
34
- HostOverrides []HostOverrides `json:"host_overrides ,omitempty"`
35
- UserAgent string `json:"user_agent ,omitempty"`
34
+ HostOverrides []HostOverrides `json:"hostOverrides ,omitempty"`
35
+ UserAgent string `json:"userAgent ,omitempty"`
36
36
Verifycertificates bool `json:"verifyCertificates,omitempty"`
37
37
}
38
38
@@ -57,7 +57,7 @@ type BrowserHeaders struct {
57
57
type HostOverrides struct {
58
58
Source string `json:"source"`
59
59
Target string `json:"target"`
60
- KeepHostHeader bool `json:"keep_host_header "`
60
+ KeepHostHeader bool `json:"keepHostHeader "`
61
61
}
62
62
63
63
type Transactions struct {
@@ -75,19 +75,8 @@ type StepsV2 struct {
75
75
Type string `json:"type"`
76
76
URL string `json:"url,omitempty"`
77
77
Action string `json:"action,omitempty"`
78
- WaitForNav bool `json:"wait_for_nav"`
79
- SelectorType string `json:"selector_type,omitempty"`
80
- Selector string `json:"selector,omitempty"`
81
- Options `json:"options,omitempty"`
82
- }
83
-
84
- type BusinessTransactionStepsV2 struct {
85
- Name string `json:"name"`
86
- Type string `json:"type"`
87
- URL string `json:"url,omitempty"`
88
- Action string `json:"action,omitempty"`
89
- WaitForNav bool `json:"wait_for_nav"`
90
- SelectorType string `json:"selector_type,omitempty"`
78
+ WaitForNav bool `json:"waitForNav"`
79
+ SelectorType string `json:"selectorType,omitempty"`
91
80
Selector string `json:"selector,omitempty"`
92
81
Options `json:"options,omitempty"`
93
82
}
@@ -99,10 +88,10 @@ type Options struct {
99
88
type Device struct {
100
89
ID int `json:"id,omitempty"`
101
90
Label string `json:"label,omitempty"`
102
- UserAgent string `json:"user_agent ,omitempty"`
103
- Networkconnection `json:"network_connection ,omitempty"`
104
- Viewportheight int `json:"viewport_height "`
105
- Viewportwidth int `json:"viewport_width "`
91
+ UserAgent string `json:"userAgent ,omitempty"`
92
+ Networkconnection `json:"networkConnection ,omitempty"`
93
+ Viewportheight int `json:"viewportHeight "`
94
+ Viewportwidth int `json:"viewportWidth "`
106
95
}
107
96
108
97
type Requests struct {
@@ -115,7 +104,7 @@ type Configuration struct {
115
104
Body string `json:"body"`
116
105
Headers `json:"headers,omitempty"`
117
106
Name string `json:"name,omitempty"`
118
- Requestmethod string `json:"requestMethod,omitempty"`
107
+ RequestMethod string `json:"requestMethod,omitempty"`
119
108
URL string `json:"url,omitempty"`
120
109
}
121
110
@@ -139,14 +128,14 @@ type Validations struct {
139
128
140
129
type Tests []struct {
141
130
Active bool `json:"active"`
142
- Createdat time.Time `json:"created_at "`
131
+ Createdat time.Time `json:"createdAt "`
143
132
Frequency int `json:"frequency"`
144
133
ID int `json:"id"`
145
134
Locationids []string `json:"locationIds"`
146
135
Name string `json:"name"`
147
- Schedulingstrategy string `json:"scheduling_strategy "`
136
+ Schedulingstrategy string `json:"schedulingStrategy "`
148
137
Type string `json:"type"`
149
- Updatedat time.Time `json:"updated_at "`
138
+ Updatedat time.Time `json:"updatedAt "`
150
139
}
151
140
152
141
type GetChecksV2Options struct {
@@ -168,12 +157,12 @@ type HttpHeaders struct {
168
157
}
169
158
170
159
type Variable struct {
171
- Createdat time.Time `json:"created_at ,omitempty"`
160
+ Createdat time.Time `json:"createdAt ,omitempty"`
172
161
Description string `json:"description,omitempty"`
173
162
ID int `json:"id,omitempty"`
174
163
Name string `json:"name"`
175
164
Secret bool `json:"secret"`
176
- Updatedat time.Time `json:"updated_at ,omitempty"`
165
+ Updatedat time.Time `json:"updatedAt ,omitempty"`
177
166
Value string `json:"value"`
178
167
}
179
168
@@ -183,6 +172,23 @@ type DeleteCheck struct {
183
172
Errors Errors `json:"errors"`
184
173
}
185
174
175
+ type Location struct {
176
+ ID string `json:"id"`
177
+ Label string `json:"label"`
178
+ Default bool `json:"default"`
179
+ Type string `json:"type,omitempty"`
180
+ Country string `json:"country,omitempty"`
181
+ }
182
+
183
+ type Meta struct {
184
+ ActiveTestIds []int `json:"activeTestIds"`
185
+ PausedTestIds []int `json:"pausedTestIds"`
186
+ }
187
+
188
+ type DevicesV2Response struct {
189
+ Devices []Device `json:"devices"`
190
+ }
191
+
186
192
type VariableV2Response struct {
187
193
Variable `json:"variable"`
188
194
}
@@ -191,6 +197,24 @@ type VariableV2Input struct {
191
197
Variable `json:"variable"`
192
198
}
193
199
200
+ type VariablesV2Response struct {
201
+ Variable []Variable `json:"variables"`
202
+ }
203
+
204
+ type LocationsV2Response struct {
205
+ Location []Location `json:"locations"`
206
+ DefaultLocationIds []string `json:"defaultLocationIds"`
207
+ }
208
+
209
+ type LocationV2Response struct {
210
+ Location `json:"location"`
211
+ Meta `json:"meta"`
212
+ }
213
+
214
+ type LocationV2Input struct {
215
+ Location `json:"location"`
216
+ }
217
+
194
218
type ChecksV2Response struct {
195
219
Nextpagelink int `json:"nextPageLink"`
196
220
Perpage int `json:"perPage"`
@@ -204,10 +228,10 @@ type PortCheckV2Response struct {
204
228
Name string `json:"name"`
205
229
Active bool `json:"active"`
206
230
Frequency int `json:"frequency"`
207
- SchedulingStrategy string `json:"scheduling_strategy "`
208
- CreatedAt time.Time `json:"created_at "`
209
- UpdatedAt time.Time `json:"updated_at "`
210
- LocationIds []string `json:"location_ids "`
231
+ SchedulingStrategy string `json:"schedulingStrategy "`
232
+ CreatedAt time.Time `json:"createdAt "`
233
+ UpdatedAt time.Time `json:"updatedAt "`
234
+ LocationIds []string `json:"locationIds "`
211
235
Type string `json:"type"`
212
236
Protocol string `json:"protocol"`
213
237
Host string `json:"host"`
@@ -223,9 +247,9 @@ type PortCheckV2Input struct {
223
247
Port int `json:"port"`
224
248
Protocol string `json:"protocol"`
225
249
Host string `json:"host"`
226
- LocationIds []string `json:"location_ids "`
250
+ LocationIds []string `json:"locationIds "`
227
251
Frequency int `json:"frequency"`
228
- SchedulingStrategy string `json:"scheduling_strategy "`
252
+ SchedulingStrategy string `json:"schedulingStrategy "`
229
253
Active bool `json:"active"`
230
254
} `json:"test"`
231
255
}
@@ -236,13 +260,13 @@ type HttpCheckV2Response struct {
236
260
Name string `json:"name"`
237
261
Active bool `json:"active"`
238
262
Frequency int `json:"frequency"`
239
- SchedulingStrategy string `json:"scheduling_strategy "`
240
- CreatedAt time.Time `json:"created_at ,omitempty"`
241
- UpdatedAt time.Time `json:"updated_at ,omitempty"`
242
- LocationIds []string `json:"location_ids "`
263
+ SchedulingStrategy string `json:"schedulingStrategy "`
264
+ CreatedAt time.Time `json:"createdAt ,omitempty"`
265
+ UpdatedAt time.Time `json:"updatedAt ,omitempty"`
266
+ LocationIds []string `json:"locationIds "`
243
267
Type string `json:"type"`
244
268
URL string `json:"url"`
245
- RequestMethod string `json:"request_method "`
269
+ RequestMethod string `json:"requestMethod "`
246
270
Body string `json:"body,omitempty"`
247
271
HttpHeaders []HttpHeaders `json:"headers,omitempty"`
248
272
} `json:"test"`
@@ -253,11 +277,11 @@ type HttpCheckV2Input struct {
253
277
Name string `json:"name"`
254
278
Type string `json:"type"`
255
279
URL string `json:"url"`
256
- LocationIds []string `json:"location_ids "`
280
+ LocationIds []string `json:"locationIds "`
257
281
Frequency int `json:"frequency"`
258
- SchedulingStrategy string `json:"scheduling_strategy "`
282
+ SchedulingStrategy string `json:"schedulingStrategy "`
259
283
Active bool `json:"active"`
260
- RequestMethod string `json:"request_method "`
284
+ RequestMethod string `json:"requestMethod "`
261
285
Body string `json:"body,omitempty"`
262
286
HttpHeaders []HttpHeaders `json:"headers,omitempty"`
263
287
} `json:"test"`
@@ -266,60 +290,59 @@ type HttpCheckV2Input struct {
266
290
type ApiCheckV2Input struct {
267
291
Test struct {
268
292
Active bool `json:"active"`
269
- Deviceid int `json:"device_id "`
293
+ Deviceid int `json:"deviceId "`
270
294
Frequency int `json:"frequency"`
271
- Locationids []string `json:"location_ids "`
295
+ Locationids []string `json:"locationIds "`
272
296
Name string `json:"name"`
273
297
Requests []Requests `json:"requests"`
274
- Schedulingstrategy string `json:"scheduling_strategy "`
298
+ Schedulingstrategy string `json:"schedulingStrategy "`
275
299
} `json:"test"`
276
300
}
277
301
278
302
type ApiCheckV2Response struct {
279
303
Test struct {
280
304
Active bool `json:"active,omitempty"`
281
- Createdat time.Time `json:"created_at "`
305
+ Createdat time.Time `json:"createdAt "`
282
306
Device `json:"device,omitempty"`
283
307
Frequency int `json:"frequency,omitempty"`
284
308
ID int `json:"id,omitempty"`
285
- Locationids []string `json:"location_ids ,omitempty"`
309
+ Locationids []string `json:"locationIds ,omitempty"`
286
310
Name string `json:"name,omitempty"`
287
311
Requests []Requests `json:"requests,omitempty"`
288
- Schedulingstrategy string `json:"scheduling_strategy ,omitempty"`
312
+ Schedulingstrategy string `json:"schedulingStrategy ,omitempty"`
289
313
Type string `json:"type,omitempty"`
290
- Updatedat time.Time `json:"updated_at ,omitempty"`
314
+ Updatedat time.Time `json:"updatedAt ,omitempty"`
291
315
}
292
316
}
293
317
294
318
type BrowserCheckV2Input struct {
295
319
Test struct {
296
- Name string `json:"name"`
297
- BusinessTransactions [] BusinessTransactions `json:"business_transactions "`
298
- Urlprotocol string `json:"urlProtocol"`
299
- Starturl string `json:"startUrl"`
300
- LocationIds []string `json:"location_ids "`
301
- DeviceID int `json:"device_id "`
302
- Frequency int `json:"frequency"`
303
- Schedulingstrategy string `json:"scheduling_strategy "`
304
- Active bool `json:"active"`
305
- Advancedsettings `json:"advanced_settings "`
320
+ Name string `json:"name"`
321
+ Transactions [] Transactions `json:"transactions "`
322
+ Urlprotocol string `json:"urlProtocol"`
323
+ Starturl string `json:"startUrl"`
324
+ LocationIds []string `json:"locationIds "`
325
+ DeviceID int `json:"deviceId "`
326
+ Frequency int `json:"frequency"`
327
+ Schedulingstrategy string `json:"schedulingStrategy "`
328
+ Active bool `json:"active"`
329
+ Advancedsettings `json:"advancedSettings "`
306
330
} `json:"test"`
307
331
}
308
332
309
333
type BrowserCheckV2Response struct {
310
334
Test struct {
311
- Active bool `json:"active"`
312
- Advancedsettings `json:"advanced_settings"`
313
- BusinessTransactions []BusinessTransactions `json:"business_transactions"`
314
- Createdat time.Time `json:"created_at"`
315
- Device `json:"device"`
316
- Frequency int `json:"frequency"`
317
- ID int `json:"id"`
318
- Locationids []string `json:"location_ids"`
319
- Name string `json:"name"`
320
- Schedulingstrategy string `json:"scheduling_strategy"`
321
- Transactions []Transactions `json:"transactions"`
322
- Type string `json:"type"`
323
- Updatedat time.Time `json:"updated_at"`
335
+ Active bool `json:"active"`
336
+ Advancedsettings `json:"advancedSettings"`
337
+ Createdat time.Time `json:"createdAt"`
338
+ Device `json:"device"`
339
+ Frequency int `json:"frequency"`
340
+ ID int `json:"id"`
341
+ Locationids []string `json:"locationIds"`
342
+ Name string `json:"name"`
343
+ Schedulingstrategy string `json:"schedulingStrategy"`
344
+ Transactions []Transactions `json:"transactions"`
345
+ Type string `json:"type"`
346
+ Updatedat time.Time `json:"updatedAt"`
324
347
} `json:"test"`
325
348
}
0 commit comments