browserup_mitmproxy_client 1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (76) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/Gemfile.lock +68 -0
  4. data/README.md +119 -0
  5. data/Rakefile +10 -0
  6. data/browserup_mitmproxy_client.gemspec +38 -0
  7. data/docs/BrowserUpProxyApi.md +657 -0
  8. data/docs/Counter.md +20 -0
  9. data/docs/Entry.md +38 -0
  10. data/docs/EntryRequest.md +36 -0
  11. data/docs/EntryRequestCookies.md +32 -0
  12. data/docs/EntryRequestQueryString.md +22 -0
  13. data/docs/EntryResponse.md +36 -0
  14. data/docs/EntryResponseContent.md +28 -0
  15. data/docs/EntryTimings.md +32 -0
  16. data/docs/Error.md +20 -0
  17. data/docs/Har.md +18 -0
  18. data/docs/HarLog.md +28 -0
  19. data/docs/HarLogCreator.md +22 -0
  20. data/docs/Header.md +22 -0
  21. data/docs/MatchCriteria.md +44 -0
  22. data/docs/NameValuePair.md +20 -0
  23. data/docs/Page.md +32 -0
  24. data/docs/PagePageTimings.md +22 -0
  25. data/docs/VerifyResult.md +22 -0
  26. data/docs/WebSocketMessage.md +24 -0
  27. data/git_push.sh +58 -0
  28. data/lib/browserup_mitmproxy_client/api/browser_up_proxy_api.rb +689 -0
  29. data/lib/browserup_mitmproxy_client/api_client.rb +389 -0
  30. data/lib/browserup_mitmproxy_client/api_error.rb +57 -0
  31. data/lib/browserup_mitmproxy_client/configuration.rb +279 -0
  32. data/lib/browserup_mitmproxy_client/models/counter.rb +239 -0
  33. data/lib/browserup_mitmproxy_client/models/entry.rb +359 -0
  34. data/lib/browserup_mitmproxy_client/models/entry_request.rb +346 -0
  35. data/lib/browserup_mitmproxy_client/models/entry_request_cookies.rb +291 -0
  36. data/lib/browserup_mitmproxy_client/models/entry_request_query_string.rb +246 -0
  37. data/lib/browserup_mitmproxy_client/models/entry_response.rb +348 -0
  38. data/lib/browserup_mitmproxy_client/models/entry_response_content.rb +273 -0
  39. data/lib/browserup_mitmproxy_client/models/entry_timings.rb +463 -0
  40. data/lib/browserup_mitmproxy_client/models/error.rb +229 -0
  41. data/lib/browserup_mitmproxy_client/models/har.rb +223 -0
  42. data/lib/browserup_mitmproxy_client/models/har_log.rb +287 -0
  43. data/lib/browserup_mitmproxy_client/models/har_log_creator.rb +246 -0
  44. data/lib/browserup_mitmproxy_client/models/header.rb +246 -0
  45. data/lib/browserup_mitmproxy_client/models/match_criteria.rb +346 -0
  46. data/lib/browserup_mitmproxy_client/models/name_value_pair.rb +229 -0
  47. data/lib/browserup_mitmproxy_client/models/page.rb +312 -0
  48. data/lib/browserup_mitmproxy_client/models/page_page_timings.rb +288 -0
  49. data/lib/browserup_mitmproxy_client/models/verify_result.rb +254 -0
  50. data/lib/browserup_mitmproxy_client/models/web_socket_message.rb +265 -0
  51. data/lib/browserup_mitmproxy_client/version.rb +15 -0
  52. data/lib/browserup_mitmproxy_client.rb +59 -0
  53. data/spec/api/browser_up_proxy_api_spec.rb +148 -0
  54. data/spec/api_client_spec.rb +226 -0
  55. data/spec/configuration_spec.rb +42 -0
  56. data/spec/models/counter_spec.rb +40 -0
  57. data/spec/models/entry_request_cookies_spec.rb +76 -0
  58. data/spec/models/entry_request_query_string_spec.rb +46 -0
  59. data/spec/models/entry_request_spec.rb +88 -0
  60. data/spec/models/entry_response_content_spec.rb +64 -0
  61. data/spec/models/entry_response_spec.rb +88 -0
  62. data/spec/models/entry_spec.rb +94 -0
  63. data/spec/models/entry_timings_spec.rb +76 -0
  64. data/spec/models/error_spec.rb +40 -0
  65. data/spec/models/har_log_creator_spec.rb +46 -0
  66. data/spec/models/har_log_spec.rb +64 -0
  67. data/spec/models/har_spec.rb +34 -0
  68. data/spec/models/header_spec.rb +46 -0
  69. data/spec/models/match_criteria_spec.rb +112 -0
  70. data/spec/models/name_value_pair_spec.rb +40 -0
  71. data/spec/models/page_page_timings_spec.rb +46 -0
  72. data/spec/models/page_spec.rb +76 -0
  73. data/spec/models/verify_result_spec.rb +46 -0
  74. data/spec/models/web_socket_message_spec.rb +52 -0
  75. data/spec/spec_helper.rb +111 -0
  76. metadata +181 -0
@@ -0,0 +1,657 @@
1
+ # BrowserupMitmProxy::BrowserUpProxyApi
2
+
3
+ All URIs are relative to *http://localhost:8088*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**add_counter**](BrowserUpProxyApi.md#add_counter) | **POST** /har/counters | |
8
+ | [**add_error**](BrowserUpProxyApi.md#add_error) | **POST** /har/errors | |
9
+ | [**get_har_log**](BrowserUpProxyApi.md#get_har_log) | **GET** /har | |
10
+ | [**healthcheck**](BrowserUpProxyApi.md#healthcheck) | **GET** /healthcheck | |
11
+ | [**new_page**](BrowserUpProxyApi.md#new_page) | **POST** /har/page | |
12
+ | [**reset_har_log**](BrowserUpProxyApi.md#reset_har_log) | **PUT** /har | |
13
+ | [**verify_not_present**](BrowserUpProxyApi.md#verify_not_present) | **POST** /verify/not_present/{name} | |
14
+ | [**verify_present**](BrowserUpProxyApi.md#verify_present) | **POST** /verify/present/{name} | |
15
+ | [**verify_size**](BrowserUpProxyApi.md#verify_size) | **POST** /verify/size/{size}/{name} | |
16
+ | [**verify_sla**](BrowserUpProxyApi.md#verify_sla) | **POST** /verify/sla/{time}/{name} | |
17
+
18
+
19
+ ## add_counter
20
+
21
+ > add_counter(counter)
22
+
23
+
24
+
25
+ Add Custom Counter to the captured traffic har
26
+
27
+ ### Examples
28
+
29
+ ```ruby
30
+ require 'time'
31
+ require 'browserup_mitmproxy_client'
32
+
33
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
34
+ counter = BrowserupMitmProxy::Counter.new({value: 3.56, name: 'name_example'}) # Counter | Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key
35
+
36
+ begin
37
+
38
+ api_instance.add_counter(counter)
39
+ rescue BrowserupMitmProxy::ApiError => e
40
+ puts "Error when calling BrowserUpProxyApi->add_counter: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the add_counter_with_http_info variant
45
+
46
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
47
+
48
+ > <Array(nil, Integer, Hash)> add_counter_with_http_info(counter)
49
+
50
+ ```ruby
51
+ begin
52
+
53
+ data, status_code, headers = api_instance.add_counter_with_http_info(counter)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => nil
57
+ rescue BrowserupMitmProxy::ApiError => e
58
+ puts "Error when calling BrowserUpProxyApi->add_counter_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **counter** | [**Counter**](Counter.md) | Receives a new counter to add. The counter is stored, under the hood, in an array in the har under the _counters key | |
67
+
68
+ ### Return type
69
+
70
+ nil (empty response body)
71
+
72
+ ### Authorization
73
+
74
+ No authorization required
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: application/json
79
+ - **Accept**: Not defined
80
+
81
+
82
+ ## add_error
83
+
84
+ > add_error(error)
85
+
86
+
87
+
88
+ Add Custom Error to the captured traffic har
89
+
90
+ ### Examples
91
+
92
+ ```ruby
93
+ require 'time'
94
+ require 'browserup_mitmproxy_client'
95
+
96
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
97
+ error = BrowserupMitmProxy::Error.new # Error | Receives an error to track. Internally, the error is stored in an array in the har under the _errors key
98
+
99
+ begin
100
+
101
+ api_instance.add_error(error)
102
+ rescue BrowserupMitmProxy::ApiError => e
103
+ puts "Error when calling BrowserUpProxyApi->add_error: #{e}"
104
+ end
105
+ ```
106
+
107
+ #### Using the add_error_with_http_info variant
108
+
109
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
110
+
111
+ > <Array(nil, Integer, Hash)> add_error_with_http_info(error)
112
+
113
+ ```ruby
114
+ begin
115
+
116
+ data, status_code, headers = api_instance.add_error_with_http_info(error)
117
+ p status_code # => 2xx
118
+ p headers # => { ... }
119
+ p data # => nil
120
+ rescue BrowserupMitmProxy::ApiError => e
121
+ puts "Error when calling BrowserUpProxyApi->add_error_with_http_info: #{e}"
122
+ end
123
+ ```
124
+
125
+ ### Parameters
126
+
127
+ | Name | Type | Description | Notes |
128
+ | ---- | ---- | ----------- | ----- |
129
+ | **error** | [**Error**](Error.md) | Receives an error to track. Internally, the error is stored in an array in the har under the _errors key | |
130
+
131
+ ### Return type
132
+
133
+ nil (empty response body)
134
+
135
+ ### Authorization
136
+
137
+ No authorization required
138
+
139
+ ### HTTP request headers
140
+
141
+ - **Content-Type**: application/json
142
+ - **Accept**: Not defined
143
+
144
+
145
+ ## get_har_log
146
+
147
+ > <Har> get_har_log
148
+
149
+
150
+
151
+ Get the current HAR.
152
+
153
+ ### Examples
154
+
155
+ ```ruby
156
+ require 'time'
157
+ require 'browserup_mitmproxy_client'
158
+
159
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
160
+
161
+ begin
162
+
163
+ result = api_instance.get_har_log
164
+ p result
165
+ rescue BrowserupMitmProxy::ApiError => e
166
+ puts "Error when calling BrowserUpProxyApi->get_har_log: #{e}"
167
+ end
168
+ ```
169
+
170
+ #### Using the get_har_log_with_http_info variant
171
+
172
+ This returns an Array which contains the response data, status code and headers.
173
+
174
+ > <Array(<Har>, Integer, Hash)> get_har_log_with_http_info
175
+
176
+ ```ruby
177
+ begin
178
+
179
+ data, status_code, headers = api_instance.get_har_log_with_http_info
180
+ p status_code # => 2xx
181
+ p headers # => { ... }
182
+ p data # => <Har>
183
+ rescue BrowserupMitmProxy::ApiError => e
184
+ puts "Error when calling BrowserUpProxyApi->get_har_log_with_http_info: #{e}"
185
+ end
186
+ ```
187
+
188
+ ### Parameters
189
+
190
+ This endpoint does not need any parameter.
191
+
192
+ ### Return type
193
+
194
+ [**Har**](Har.md)
195
+
196
+ ### Authorization
197
+
198
+ No authorization required
199
+
200
+ ### HTTP request headers
201
+
202
+ - **Content-Type**: Not defined
203
+ - **Accept**: application/json
204
+
205
+
206
+ ## healthcheck
207
+
208
+ > healthcheck
209
+
210
+
211
+
212
+ Get the healthcheck
213
+
214
+ ### Examples
215
+
216
+ ```ruby
217
+ require 'time'
218
+ require 'browserup_mitmproxy_client'
219
+
220
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
221
+
222
+ begin
223
+
224
+ api_instance.healthcheck
225
+ rescue BrowserupMitmProxy::ApiError => e
226
+ puts "Error when calling BrowserUpProxyApi->healthcheck: #{e}"
227
+ end
228
+ ```
229
+
230
+ #### Using the healthcheck_with_http_info variant
231
+
232
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
233
+
234
+ > <Array(nil, Integer, Hash)> healthcheck_with_http_info
235
+
236
+ ```ruby
237
+ begin
238
+
239
+ data, status_code, headers = api_instance.healthcheck_with_http_info
240
+ p status_code # => 2xx
241
+ p headers # => { ... }
242
+ p data # => nil
243
+ rescue BrowserupMitmProxy::ApiError => e
244
+ puts "Error when calling BrowserUpProxyApi->healthcheck_with_http_info: #{e}"
245
+ end
246
+ ```
247
+
248
+ ### Parameters
249
+
250
+ This endpoint does not need any parameter.
251
+
252
+ ### Return type
253
+
254
+ nil (empty response body)
255
+
256
+ ### Authorization
257
+
258
+ No authorization required
259
+
260
+ ### HTTP request headers
261
+
262
+ - **Content-Type**: Not defined
263
+ - **Accept**: Not defined
264
+
265
+
266
+ ## new_page
267
+
268
+ > <Har> new_page(title)
269
+
270
+
271
+
272
+ Starts a fresh HAR Page (Step) in the current active HAR to group requests.
273
+
274
+ ### Examples
275
+
276
+ ```ruby
277
+ require 'time'
278
+ require 'browserup_mitmproxy_client'
279
+
280
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
281
+ title = 'title_example' # String | The unique title for this har page/step.
282
+
283
+ begin
284
+
285
+ result = api_instance.new_page(title)
286
+ p result
287
+ rescue BrowserupMitmProxy::ApiError => e
288
+ puts "Error when calling BrowserUpProxyApi->new_page: #{e}"
289
+ end
290
+ ```
291
+
292
+ #### Using the new_page_with_http_info variant
293
+
294
+ This returns an Array which contains the response data, status code and headers.
295
+
296
+ > <Array(<Har>, Integer, Hash)> new_page_with_http_info(title)
297
+
298
+ ```ruby
299
+ begin
300
+
301
+ data, status_code, headers = api_instance.new_page_with_http_info(title)
302
+ p status_code # => 2xx
303
+ p headers # => { ... }
304
+ p data # => <Har>
305
+ rescue BrowserupMitmProxy::ApiError => e
306
+ puts "Error when calling BrowserUpProxyApi->new_page_with_http_info: #{e}"
307
+ end
308
+ ```
309
+
310
+ ### Parameters
311
+
312
+ | Name | Type | Description | Notes |
313
+ | ---- | ---- | ----------- | ----- |
314
+ | **title** | **String** | The unique title for this har page/step. | |
315
+
316
+ ### Return type
317
+
318
+ [**Har**](Har.md)
319
+
320
+ ### Authorization
321
+
322
+ No authorization required
323
+
324
+ ### HTTP request headers
325
+
326
+ - **Content-Type**: Not defined
327
+ - **Accept**: application/json
328
+
329
+
330
+ ## reset_har_log
331
+
332
+ > <Har> reset_har_log
333
+
334
+
335
+
336
+ Starts a fresh HAR capture session.
337
+
338
+ ### Examples
339
+
340
+ ```ruby
341
+ require 'time'
342
+ require 'browserup_mitmproxy_client'
343
+
344
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
345
+
346
+ begin
347
+
348
+ result = api_instance.reset_har_log
349
+ p result
350
+ rescue BrowserupMitmProxy::ApiError => e
351
+ puts "Error when calling BrowserUpProxyApi->reset_har_log: #{e}"
352
+ end
353
+ ```
354
+
355
+ #### Using the reset_har_log_with_http_info variant
356
+
357
+ This returns an Array which contains the response data, status code and headers.
358
+
359
+ > <Array(<Har>, Integer, Hash)> reset_har_log_with_http_info
360
+
361
+ ```ruby
362
+ begin
363
+
364
+ data, status_code, headers = api_instance.reset_har_log_with_http_info
365
+ p status_code # => 2xx
366
+ p headers # => { ... }
367
+ p data # => <Har>
368
+ rescue BrowserupMitmProxy::ApiError => e
369
+ puts "Error when calling BrowserUpProxyApi->reset_har_log_with_http_info: #{e}"
370
+ end
371
+ ```
372
+
373
+ ### Parameters
374
+
375
+ This endpoint does not need any parameter.
376
+
377
+ ### Return type
378
+
379
+ [**Har**](Har.md)
380
+
381
+ ### Authorization
382
+
383
+ No authorization required
384
+
385
+ ### HTTP request headers
386
+
387
+ - **Content-Type**: Not defined
388
+ - **Accept**: application/json
389
+
390
+
391
+ ## verify_not_present
392
+
393
+ > <VerifyResult> verify_not_present(name, match_criteria)
394
+
395
+
396
+
397
+ Verify no matching items are present in the captured traffic
398
+
399
+ ### Examples
400
+
401
+ ```ruby
402
+ require 'time'
403
+ require 'browserup_mitmproxy_client'
404
+
405
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
406
+ name = 'name_example' # String | The unique name for this verification operation
407
+ match_criteria = BrowserupMitmProxy::MatchCriteria.new # MatchCriteria | Match criteria to select requests - response pairs for size tests
408
+
409
+ begin
410
+
411
+ result = api_instance.verify_not_present(name, match_criteria)
412
+ p result
413
+ rescue BrowserupMitmProxy::ApiError => e
414
+ puts "Error when calling BrowserUpProxyApi->verify_not_present: #{e}"
415
+ end
416
+ ```
417
+
418
+ #### Using the verify_not_present_with_http_info variant
419
+
420
+ This returns an Array which contains the response data, status code and headers.
421
+
422
+ > <Array(<VerifyResult>, Integer, Hash)> verify_not_present_with_http_info(name, match_criteria)
423
+
424
+ ```ruby
425
+ begin
426
+
427
+ data, status_code, headers = api_instance.verify_not_present_with_http_info(name, match_criteria)
428
+ p status_code # => 2xx
429
+ p headers # => { ... }
430
+ p data # => <VerifyResult>
431
+ rescue BrowserupMitmProxy::ApiError => e
432
+ puts "Error when calling BrowserUpProxyApi->verify_not_present_with_http_info: #{e}"
433
+ end
434
+ ```
435
+
436
+ ### Parameters
437
+
438
+ | Name | Type | Description | Notes |
439
+ | ---- | ---- | ----------- | ----- |
440
+ | **name** | **String** | The unique name for this verification operation | |
441
+ | **match_criteria** | [**MatchCriteria**](MatchCriteria.md) | Match criteria to select requests - response pairs for size tests | |
442
+
443
+ ### Return type
444
+
445
+ [**VerifyResult**](VerifyResult.md)
446
+
447
+ ### Authorization
448
+
449
+ No authorization required
450
+
451
+ ### HTTP request headers
452
+
453
+ - **Content-Type**: application/json
454
+ - **Accept**: application/json
455
+
456
+
457
+ ## verify_present
458
+
459
+ > <VerifyResult> verify_present(name, match_criteria)
460
+
461
+
462
+
463
+ Verify at least one matching item is present in the captured traffic
464
+
465
+ ### Examples
466
+
467
+ ```ruby
468
+ require 'time'
469
+ require 'browserup_mitmproxy_client'
470
+
471
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
472
+ name = 'name_example' # String | The unique name for this verification operation
473
+ match_criteria = BrowserupMitmProxy::MatchCriteria.new # MatchCriteria | Match criteria to select requests - response pairs for size tests
474
+
475
+ begin
476
+
477
+ result = api_instance.verify_present(name, match_criteria)
478
+ p result
479
+ rescue BrowserupMitmProxy::ApiError => e
480
+ puts "Error when calling BrowserUpProxyApi->verify_present: #{e}"
481
+ end
482
+ ```
483
+
484
+ #### Using the verify_present_with_http_info variant
485
+
486
+ This returns an Array which contains the response data, status code and headers.
487
+
488
+ > <Array(<VerifyResult>, Integer, Hash)> verify_present_with_http_info(name, match_criteria)
489
+
490
+ ```ruby
491
+ begin
492
+
493
+ data, status_code, headers = api_instance.verify_present_with_http_info(name, match_criteria)
494
+ p status_code # => 2xx
495
+ p headers # => { ... }
496
+ p data # => <VerifyResult>
497
+ rescue BrowserupMitmProxy::ApiError => e
498
+ puts "Error when calling BrowserUpProxyApi->verify_present_with_http_info: #{e}"
499
+ end
500
+ ```
501
+
502
+ ### Parameters
503
+
504
+ | Name | Type | Description | Notes |
505
+ | ---- | ---- | ----------- | ----- |
506
+ | **name** | **String** | The unique name for this verification operation | |
507
+ | **match_criteria** | [**MatchCriteria**](MatchCriteria.md) | Match criteria to select requests - response pairs for size tests | |
508
+
509
+ ### Return type
510
+
511
+ [**VerifyResult**](VerifyResult.md)
512
+
513
+ ### Authorization
514
+
515
+ No authorization required
516
+
517
+ ### HTTP request headers
518
+
519
+ - **Content-Type**: application/json
520
+ - **Accept**: application/json
521
+
522
+
523
+ ## verify_size
524
+
525
+ > <VerifyResult> verify_size(size, name, match_criteria)
526
+
527
+
528
+
529
+ Verify matching items in the captured traffic meet the size criteria
530
+
531
+ ### Examples
532
+
533
+ ```ruby
534
+ require 'time'
535
+ require 'browserup_mitmproxy_client'
536
+
537
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
538
+ size = 56 # Integer | The size used for comparison, in kilobytes
539
+ name = 'name_example' # String | The unique name for this verification operation
540
+ match_criteria = BrowserupMitmProxy::MatchCriteria.new # MatchCriteria | Match criteria to select requests - response pairs for size tests
541
+
542
+ begin
543
+
544
+ result = api_instance.verify_size(size, name, match_criteria)
545
+ p result
546
+ rescue BrowserupMitmProxy::ApiError => e
547
+ puts "Error when calling BrowserUpProxyApi->verify_size: #{e}"
548
+ end
549
+ ```
550
+
551
+ #### Using the verify_size_with_http_info variant
552
+
553
+ This returns an Array which contains the response data, status code and headers.
554
+
555
+ > <Array(<VerifyResult>, Integer, Hash)> verify_size_with_http_info(size, name, match_criteria)
556
+
557
+ ```ruby
558
+ begin
559
+
560
+ data, status_code, headers = api_instance.verify_size_with_http_info(size, name, match_criteria)
561
+ p status_code # => 2xx
562
+ p headers # => { ... }
563
+ p data # => <VerifyResult>
564
+ rescue BrowserupMitmProxy::ApiError => e
565
+ puts "Error when calling BrowserUpProxyApi->verify_size_with_http_info: #{e}"
566
+ end
567
+ ```
568
+
569
+ ### Parameters
570
+
571
+ | Name | Type | Description | Notes |
572
+ | ---- | ---- | ----------- | ----- |
573
+ | **size** | **Integer** | The size used for comparison, in kilobytes | |
574
+ | **name** | **String** | The unique name for this verification operation | |
575
+ | **match_criteria** | [**MatchCriteria**](MatchCriteria.md) | Match criteria to select requests - response pairs for size tests | |
576
+
577
+ ### Return type
578
+
579
+ [**VerifyResult**](VerifyResult.md)
580
+
581
+ ### Authorization
582
+
583
+ No authorization required
584
+
585
+ ### HTTP request headers
586
+
587
+ - **Content-Type**: application/json
588
+ - **Accept**: application/json
589
+
590
+
591
+ ## verify_sla
592
+
593
+ > <VerifyResult> verify_sla(time, name, match_criteria)
594
+
595
+
596
+
597
+ Verify each traffic item matching the criteria meets is below SLA time
598
+
599
+ ### Examples
600
+
601
+ ```ruby
602
+ require 'time'
603
+ require 'browserup_mitmproxy_client'
604
+
605
+ api_instance = BrowserupMitmProxy::BrowserUpProxyApi.new
606
+ time = 56 # Integer | The time used for comparison
607
+ name = 'name_example' # String | The unique name for this verification operation
608
+ match_criteria = BrowserupMitmProxy::MatchCriteria.new # MatchCriteria | Match criteria to select requests - response pairs for size tests
609
+
610
+ begin
611
+
612
+ result = api_instance.verify_sla(time, name, match_criteria)
613
+ p result
614
+ rescue BrowserupMitmProxy::ApiError => e
615
+ puts "Error when calling BrowserUpProxyApi->verify_sla: #{e}"
616
+ end
617
+ ```
618
+
619
+ #### Using the verify_sla_with_http_info variant
620
+
621
+ This returns an Array which contains the response data, status code and headers.
622
+
623
+ > <Array(<VerifyResult>, Integer, Hash)> verify_sla_with_http_info(time, name, match_criteria)
624
+
625
+ ```ruby
626
+ begin
627
+
628
+ data, status_code, headers = api_instance.verify_sla_with_http_info(time, name, match_criteria)
629
+ p status_code # => 2xx
630
+ p headers # => { ... }
631
+ p data # => <VerifyResult>
632
+ rescue BrowserupMitmProxy::ApiError => e
633
+ puts "Error when calling BrowserUpProxyApi->verify_sla_with_http_info: #{e}"
634
+ end
635
+ ```
636
+
637
+ ### Parameters
638
+
639
+ | Name | Type | Description | Notes |
640
+ | ---- | ---- | ----------- | ----- |
641
+ | **time** | **Integer** | The time used for comparison | |
642
+ | **name** | **String** | The unique name for this verification operation | |
643
+ | **match_criteria** | [**MatchCriteria**](MatchCriteria.md) | Match criteria to select requests - response pairs for size tests | |
644
+
645
+ ### Return type
646
+
647
+ [**VerifyResult**](VerifyResult.md)
648
+
649
+ ### Authorization
650
+
651
+ No authorization required
652
+
653
+ ### HTTP request headers
654
+
655
+ - **Content-Type**: application/json
656
+ - **Accept**: application/json
657
+
data/docs/Counter.md ADDED
@@ -0,0 +1,20 @@
1
+ # BrowserupMitmProxy::Counter
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **Float** | Value for the counter | |
8
+ | **name** | **String** | Name of Custom Counter value you are adding to the page under _counters | |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'browserup_mitmproxy_client'
14
+
15
+ instance = BrowserupMitmProxy::Counter.new(
16
+ value: null,
17
+ name: null
18
+ )
19
+ ```
20
+
data/docs/Entry.md ADDED
@@ -0,0 +1,38 @@
1
+ # BrowserupMitmProxy::Entry
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **pageref** | **String** | | [optional] |
8
+ | **started_date_time** | **Time** | | |
9
+ | **time** | **Integer** | | |
10
+ | **request** | [**EntryRequest**](EntryRequest.md) | | |
11
+ | **response** | [**EntryResponse**](EntryResponse.md) | | |
12
+ | **cache** | **Object** | | |
13
+ | **timings** | [**EntryTimings**](EntryTimings.md) | | |
14
+ | **server_ip_address** | **String** | | [optional] |
15
+ | **_web_socket_messages** | [**Array&lt;WebSocketMessage&gt;**](WebSocketMessage.md) | | [optional] |
16
+ | **connection** | **String** | | [optional] |
17
+ | **comment** | **String** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'browserup_mitmproxy_client'
23
+
24
+ instance = BrowserupMitmProxy::Entry.new(
25
+ pageref: null,
26
+ started_date_time: null,
27
+ time: null,
28
+ request: null,
29
+ response: null,
30
+ cache: null,
31
+ timings: null,
32
+ server_ip_address: null,
33
+ _web_socket_messages: null,
34
+ connection: null,
35
+ comment: null
36
+ )
37
+ ```
38
+