statuscake-rb 1.0.0.pre.beta.4 → 1.1.0.pre.beta.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 (60) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +21 -0
  3. data/README.md +71 -0
  4. data/lib/statuscake/api/contact_groups_api.rb +2 -2
  5. data/lib/statuscake/api/locations_api.rb +2 -5
  6. data/lib/statuscake/api/maintenance_windows_api.rb +2 -2
  7. data/lib/statuscake/api/pagespeed_api.rb +12 -2
  8. data/lib/statuscake/api/ssl_api.rb +5 -2
  9. data/lib/statuscake/api/uptime_api.rb +26 -2
  10. data/lib/statuscake/api_client.rb +2 -4
  11. data/lib/statuscake/api_error.rb +2 -2
  12. data/lib/statuscake/configuration.rb +2 -9
  13. data/lib/statuscake/models/api_error.rb +2 -2
  14. data/lib/statuscake/models/api_response.rb +2 -2
  15. data/lib/statuscake/models/api_response_data.rb +2 -2
  16. data/lib/statuscake/models/contact_group.rb +2 -2
  17. data/lib/statuscake/models/contact_group_response.rb +2 -2
  18. data/lib/statuscake/models/contact_groups.rb +2 -2
  19. data/lib/statuscake/models/links.rb +2 -2
  20. data/lib/statuscake/models/maintenance_window.rb +2 -2
  21. data/lib/statuscake/models/maintenance_window_repeat_interval.rb +2 -2
  22. data/lib/statuscake/models/maintenance_window_response.rb +2 -2
  23. data/lib/statuscake/models/maintenance_window_state.rb +2 -2
  24. data/lib/statuscake/models/maintenance_windows.rb +2 -2
  25. data/lib/statuscake/models/monitoring_location.rb +2 -2
  26. data/lib/statuscake/models/monitoring_location_status.rb +2 -2
  27. data/lib/statuscake/models/monitoring_locations.rb +2 -2
  28. data/lib/statuscake/models/pagespeed_test.rb +2 -2
  29. data/lib/statuscake/models/pagespeed_test_check_rate.rb +2 -2
  30. data/lib/statuscake/models/pagespeed_test_history.rb +2 -2
  31. data/lib/statuscake/models/pagespeed_test_history_result.rb +2 -2
  32. data/lib/statuscake/models/pagespeed_test_region.rb +2 -2
  33. data/lib/statuscake/models/pagespeed_test_response.rb +2 -2
  34. data/lib/statuscake/models/pagespeed_test_stats.rb +2 -2
  35. data/lib/statuscake/models/pagespeed_test_throttling.rb +2 -2
  36. data/lib/statuscake/models/pagespeed_tests.rb +2 -2
  37. data/lib/statuscake/models/pagination.rb +2 -2
  38. data/lib/statuscake/models/ssl_test.rb +2 -2
  39. data/lib/statuscake/models/ssl_test_check_rate.rb +2 -2
  40. data/lib/statuscake/models/ssl_test_flags.rb +2 -2
  41. data/lib/statuscake/models/ssl_test_mixed_content.rb +2 -2
  42. data/lib/statuscake/models/ssl_test_response.rb +2 -2
  43. data/lib/statuscake/models/ssl_tests.rb +2 -2
  44. data/lib/statuscake/models/uptime_test.rb +2 -2
  45. data/lib/statuscake/models/uptime_test_alert.rb +2 -2
  46. data/lib/statuscake/models/uptime_test_alerts.rb +2 -2
  47. data/lib/statuscake/models/uptime_test_check_rate.rb +2 -2
  48. data/lib/statuscake/models/uptime_test_history.rb +2 -2
  49. data/lib/statuscake/models/uptime_test_history_result.rb +2 -2
  50. data/lib/statuscake/models/uptime_test_overview.rb +2 -2
  51. data/lib/statuscake/models/uptime_test_period.rb +2 -2
  52. data/lib/statuscake/models/uptime_test_periods.rb +2 -2
  53. data/lib/statuscake/models/uptime_test_processing_state.rb +2 -2
  54. data/lib/statuscake/models/uptime_test_response.rb +2 -2
  55. data/lib/statuscake/models/uptime_test_status.rb +2 -2
  56. data/lib/statuscake/models/uptime_test_type.rb +2 -2
  57. data/lib/statuscake/models/uptime_tests.rb +2 -2
  58. data/lib/statuscake/version.rb +3 -3
  59. data/lib/statuscake.rb +3 -2
  60. metadata +5 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 143c65194a989509dca6fbaefb72ef590def90cef5841b279ce00d5775e721f2
4
- data.tar.gz: e5c646a68d94066676990c637da6463a7b6668c74bf3678aa723f7ac49f80a4b
3
+ metadata.gz: 57b278ca9fcd50937f15a3a7c11e0bb575de38f369f4e11b75a397c622bdae1c
4
+ data.tar.gz: b49051f46763bcc13140932939a181e94d10675c96ab9070147970309132779e
5
5
  SHA512:
6
- metadata.gz: 4c08f399d24850cea2f5adaaadf394d34a8f02afe1b2b023f049703b4105deaf26caa34feaf16a859120f9baea9ce5f60c4423a66f99329e8ece228a534e1e9e
7
- data.tar.gz: 2bf18d05a97baf876ce653f7669187ccb73f3e194dfcad1332b8b59ac7b2f7d5f3a188c89ae662c9ac5e0f0e561b963762a6453d136fd468604c97593aea1ec7
6
+ metadata.gz: ca793581f7d39f4a01530cf9376428c3a0e944b46af3189dcd40c8c2849ea2912bd2d934f44556c7d70cb0c9d853d7fd9a5a96a28188f0f32ecefee100157a93
7
+ data.tar.gz: 7fd63633fff2bee572941d8dbf2ddca0debb0b19f0e524562977e314b0a8692ebd03c4157ad7340bd29d980e90eb2133e73798abcd6994babd9cb0f079a01015
data/LICENSE.md ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
9
+ of the Software, and to permit persons to whom the Software is furnished to do
10
+ so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,71 @@
1
+ # statuscake-rb ![test](https://github.com/StatusCakeDev/statuscake-rb/workflows/test/badge.svg)
2
+
3
+ **NOTE**: This library is in alpha and not production ready. Whilst it can be
4
+ used we will not offer support until it is generally available.
5
+
6
+ The [Ruby](https://www.ruby-lang.org/en/) implementation of the [StatusCake
7
+ API](https://www.statuscake.com/api/v1) client. Documentation for this library
8
+ can be found [here](https://www.statuscake.com/api/v1).
9
+
10
+ ## Prerequisites
11
+
12
+ You will need the following things properly installed on your computer.
13
+
14
+ * [Ruby](https://www.ruby-lang.org/en/): any one of the **three latest major**
15
+ [releases](https://www.ruby-lang.org/en/downloads/)
16
+
17
+ ## Installation
18
+
19
+ ### RubyGems
20
+
21
+ Using [RubyGems](https://rubygems.org/gems/statuscake-rb), add the following to
22
+ `Gemfile`:
23
+
24
+ ```ruby
25
+ gem 'statuscake-rb'
26
+ ```
27
+
28
+ And then execute:
29
+
30
+ ```bash
31
+ $ bundle install
32
+ ```
33
+
34
+ Or install it yourself:
35
+
36
+ ```bash
37
+ $ gem install statuscake-rb
38
+ ```
39
+
40
+ ### GitHub
41
+
42
+ Installing the latest version from GitHub:
43
+
44
+ ```bash
45
+ $ git clone https://github.com/StatusCakeDev/statuscake-rb
46
+ $ cd statuscake-rb
47
+ $ bundle install
48
+ $ bundle exec rake install
49
+ ```
50
+
51
+ ## Usage
52
+
53
+ Import the gem from any Ruby file, instantiate an API client and execute a
54
+ request:
55
+
56
+ ```ruby
57
+ require 'statuscake'
58
+
59
+ client = StatusCake::ApiClient.new
60
+
61
+ # Constructing these options is a temporary fix until a client wide
62
+ # authentication mechanism has been realised.
63
+ opts = { header_params: { 'Authorization' => "Bearer #{api_token}" } }
64
+
65
+ service = StatusCake::UptimeApi.new(client)
66
+ service.list_uptime_tests(opts)
67
+ ```
68
+
69
+ ## License
70
+
71
+ This project is licensed under the [MIT License](LICENSE.md).
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -102,7 +102,6 @@ module StatusCake
102
102
  # Get all uptime monitoring locations
103
103
  # Returns a list of locations detailing server information for uptime monitoring servers. This information can be used to create further checks using the API.
104
104
  # @param [Hash] opts the optional parameters
105
- # @option opts [String] :location Alpha-3 ISO 3166-1 country code
106
105
  # @option opts [String] :region_code Server region code
107
106
  # @return [MonitoringLocations]
108
107
  def list_uptime_monitoring_locations(opts = {})
@@ -113,7 +112,6 @@ module StatusCake
113
112
  # Get all uptime monitoring locations
114
113
  # Returns a list of locations detailing server information for uptime monitoring servers. This information can be used to create further checks using the API.
115
114
  # @param [Hash] opts the optional parameters
116
- # @option opts [String] :location Alpha-3 ISO 3166-1 country code
117
115
  # @option opts [String] :region_code Server region code
118
116
  # @return [Array<(MonitoringLocations, Integer, Hash)>] MonitoringLocations data, response status code and response headers
119
117
  def list_uptime_monitoring_locations_with_http_info(opts = {})
@@ -125,7 +123,6 @@ module StatusCake
125
123
 
126
124
  # query parameters
127
125
  query_params = opts[:query_params] || {}
128
- query_params[:'location'] = opts[:'location'] unless opts[:'location'].nil?
129
126
  query_params[:'region_code'] = opts[:'region_code'] unless opts[:'region_code'].nil?
130
127
 
131
128
  # header parameters
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -290,6 +290,7 @@ module StatusCake
290
290
  # @param [Hash] opts the optional parameters
291
291
  # @option opts [Integer] :limit The number of results to return from the series (default to 25)
292
292
  # @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
293
+ # @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
293
294
  # @return [PagespeedTestHistory]
294
295
  def list_pagespeed_test_history(test_id, opts = {})
295
296
  data, _status_code, _headers = list_pagespeed_test_history_with_http_info(test_id, opts)
@@ -302,6 +303,7 @@ module StatusCake
302
303
  # @param [Hash] opts the optional parameters
303
304
  # @option opts [Integer] :limit The number of results to return from the series (default to 25)
304
305
  # @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
306
+ # @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
305
307
  # @return [Array<(PagespeedTestHistory, Integer, Hash)>] PagespeedTestHistory data, response status code and response headers
306
308
  def list_pagespeed_test_history_with_http_info(test_id, opts = {})
307
309
  if @api_client.config.debugging
@@ -323,6 +325,10 @@ module StatusCake
323
325
  raise ArgumentError, 'invalid value for "opts[:"before"]" when calling PagespeedApi.list_pagespeed_test_history, must be greater than or equal to 0.'
324
326
  end
325
327
 
328
+ if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
329
+ raise ArgumentError, 'invalid value for "opts[:"after"]" when calling PagespeedApi.list_pagespeed_test_history, must be greater than or equal to 0.'
330
+ end
331
+
326
332
  # resource path
327
333
  local_var_path = '/pagespeed/{test_id}/history'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))
328
334
 
@@ -330,6 +336,7 @@ module StatusCake
330
336
  query_params = opts[:query_params] || {}
331
337
  query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
332
338
  query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
339
+ query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?
333
340
 
334
341
  # header parameters
335
342
  header_params = opts[:header_params] || {}
@@ -447,6 +454,7 @@ module StatusCake
447
454
  # @param test_id [String] Pagespeed check ID
448
455
  # @param [Hash] opts the optional parameters
449
456
  # @option opts [String] :name Name of the check
457
+ # @option opts [String] :website_url URL, FQDN, or IP address of the website under test
450
458
  # @option opts [PagespeedTestCheckRate] :check_rate
451
459
  # @option opts [Integer] :alert_bigger An alert will be sent if the size of the page is larger than this value (kb). A value of 0 prevents alerts being sent.
452
460
  # @option opts [Integer] :alert_slower An alert will be sent if the load time of the page exceeds this value (ms). A value of 0 prevents alerts being sent
@@ -465,6 +473,7 @@ module StatusCake
465
473
  # @param test_id [String] Pagespeed check ID
466
474
  # @param [Hash] opts the optional parameters
467
475
  # @option opts [String] :name Name of the check
476
+ # @option opts [String] :website_url URL, FQDN, or IP address of the website under test
468
477
  # @option opts [PagespeedTestCheckRate] :check_rate
469
478
  # @option opts [Integer] :alert_bigger An alert will be sent if the size of the page is larger than this value (kb). A value of 0 prevents alerts being sent.
470
479
  # @option opts [Integer] :alert_slower An alert will be sent if the load time of the page exceeds this value (ms). A value of 0 prevents alerts being sent
@@ -512,6 +521,7 @@ module StatusCake
512
521
  # form parameters
513
522
  form_params = opts[:form_params] || {}
514
523
  form_params['name'] = opts[:'name'] unless opts[:'name'].nil?
524
+ form_params['website_url'] = opts[:'website_url'] unless opts[:'website_url'].nil?
515
525
  form_params['check_rate'] = opts[:'check_rate'] unless opts[:'check_rate'].nil?
516
526
  form_params['alert_bigger'] = opts[:'alert_bigger'] unless opts[:'alert_bigger'].nil?
517
527
  form_params['alert_slower'] = opts[:'alert_slower'] unless opts[:'alert_slower'].nil?
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -357,6 +357,7 @@ module StatusCake
357
357
  # Updates an SSL check with the given parameters.
358
358
  # @param test_id [String] SSL check ID
359
359
  # @param [Hash] opts the optional parameters
360
+ # @option opts [String] :website_url URL of the server under test. Must begin with https://
360
361
  # @option opts [SSLTestCheckRate] :check_rate
361
362
  # @option opts [Array<Integer>] :alert_at List representing when alerts should be sent (days). Must be exactly 3 numerical values
362
363
  # @option opts [Boolean] :alert_broken Whether to enable alerts when SSL certificate issues are found
@@ -378,6 +379,7 @@ module StatusCake
378
379
  # Updates an SSL check with the given parameters.
379
380
  # @param test_id [String] SSL check ID
380
381
  # @param [Hash] opts the optional parameters
382
+ # @option opts [String] :website_url URL of the server under test. Must begin with https://
381
383
  # @option opts [SSLTestCheckRate] :check_rate
382
384
  # @option opts [Array<Integer>] :alert_at List representing when alerts should be sent (days). Must be exactly 3 numerical values
383
385
  # @option opts [Boolean] :alert_broken Whether to enable alerts when SSL certificate issues are found
@@ -416,6 +418,7 @@ module StatusCake
416
418
 
417
419
  # form parameters
418
420
  form_params = opts[:form_params] || {}
421
+ form_params['website_url'] = opts[:'website_url'] unless opts[:'website_url'].nil?
419
422
  form_params['check_rate'] = opts[:'check_rate'] unless opts[:'check_rate'].nil?
420
423
  form_params['alert_at'] = @api_client.build_collection_param(opts[:'alert_at'], :csv) unless opts[:'alert_at'].nil?
421
424
  form_params['alert_broken'] = opts[:'alert_broken'] unless opts[:'alert_broken'].nil?
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -366,6 +366,7 @@ module StatusCake
366
366
  # @param [Hash] opts the optional parameters
367
367
  # @option opts [Integer] :limit The number of uptime alerts to return per page (default to 25)
368
368
  # @option opts [Integer] :before Only alerts triggered before this UNIX timestamp will be returned
369
+ # @option opts [Integer] :after Only alerts triggered after this UNIX timestamp will be returned
369
370
  # @return [UptimeTestAlerts]
370
371
  def list_uptime_test_alerts(test_id, opts = {})
371
372
  data, _status_code, _headers = list_uptime_test_alerts_with_http_info(test_id, opts)
@@ -378,6 +379,7 @@ module StatusCake
378
379
  # @param [Hash] opts the optional parameters
379
380
  # @option opts [Integer] :limit The number of uptime alerts to return per page (default to 25)
380
381
  # @option opts [Integer] :before Only alerts triggered before this UNIX timestamp will be returned
382
+ # @option opts [Integer] :after Only alerts triggered after this UNIX timestamp will be returned
381
383
  # @return [Array<(UptimeTestAlerts, Integer, Hash)>] UptimeTestAlerts data, response status code and response headers
382
384
  def list_uptime_test_alerts_with_http_info(test_id, opts = {})
383
385
  if @api_client.config.debugging
@@ -399,6 +401,10 @@ module StatusCake
399
401
  raise ArgumentError, 'invalid value for "opts[:"before"]" when calling UptimeApi.list_uptime_test_alerts, must be greater than or equal to 0.'
400
402
  end
401
403
 
404
+ if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
405
+ raise ArgumentError, 'invalid value for "opts[:"after"]" when calling UptimeApi.list_uptime_test_alerts, must be greater than or equal to 0.'
406
+ end
407
+
402
408
  # resource path
403
409
  local_var_path = '/uptime/{test_id}/alerts'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))
404
410
 
@@ -406,6 +412,7 @@ module StatusCake
406
412
  query_params = opts[:query_params] || {}
407
413
  query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
408
414
  query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
415
+ query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?
409
416
 
410
417
  # header parameters
411
418
  header_params = opts[:header_params] || {}
@@ -448,6 +455,7 @@ module StatusCake
448
455
  # @param [Hash] opts the optional parameters
449
456
  # @option opts [Integer] :limit The number of results to return per page (default to 25)
450
457
  # @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
458
+ # @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
451
459
  # @return [UptimeTestHistory]
452
460
  def list_uptime_test_history(test_id, opts = {})
453
461
  data, _status_code, _headers = list_uptime_test_history_with_http_info(test_id, opts)
@@ -460,6 +468,7 @@ module StatusCake
460
468
  # @param [Hash] opts the optional parameters
461
469
  # @option opts [Integer] :limit The number of results to return per page (default to 25)
462
470
  # @option opts [Integer] :before Only results created before this UNIX timestamp will be returned
471
+ # @option opts [Integer] :after Only results created after this UNIX timestamp will be returned
463
472
  # @return [Array<(UptimeTestHistory, Integer, Hash)>] UptimeTestHistory data, response status code and response headers
464
473
  def list_uptime_test_history_with_http_info(test_id, opts = {})
465
474
  if @api_client.config.debugging
@@ -481,6 +490,10 @@ module StatusCake
481
490
  raise ArgumentError, 'invalid value for "opts[:"before"]" when calling UptimeApi.list_uptime_test_history, must be greater than or equal to 0.'
482
491
  end
483
492
 
493
+ if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
494
+ raise ArgumentError, 'invalid value for "opts[:"after"]" when calling UptimeApi.list_uptime_test_history, must be greater than or equal to 0.'
495
+ end
496
+
484
497
  # resource path
485
498
  local_var_path = '/uptime/{test_id}/history'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))
486
499
 
@@ -488,6 +501,7 @@ module StatusCake
488
501
  query_params = opts[:query_params] || {}
489
502
  query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
490
503
  query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
504
+ query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?
491
505
 
492
506
  # header parameters
493
507
  header_params = opts[:header_params] || {}
@@ -530,6 +544,7 @@ module StatusCake
530
544
  # @param [Hash] opts the optional parameters
531
545
  # @option opts [Integer] :limit The number of uptime check periods to return per page (default to 25)
532
546
  # @option opts [Integer] :before Only check periods created before this UNIX timestamp will be returned
547
+ # @option opts [Integer] :after Only check periods created after this UNIX timestamp will be returned
533
548
  # @return [UptimeTestPeriods]
534
549
  def list_uptime_test_periods(test_id, opts = {})
535
550
  data, _status_code, _headers = list_uptime_test_periods_with_http_info(test_id, opts)
@@ -542,6 +557,7 @@ module StatusCake
542
557
  # @param [Hash] opts the optional parameters
543
558
  # @option opts [Integer] :limit The number of uptime check periods to return per page (default to 25)
544
559
  # @option opts [Integer] :before Only check periods created before this UNIX timestamp will be returned
560
+ # @option opts [Integer] :after Only check periods created after this UNIX timestamp will be returned
545
561
  # @return [Array<(UptimeTestPeriods, Integer, Hash)>] UptimeTestPeriods data, response status code and response headers
546
562
  def list_uptime_test_periods_with_http_info(test_id, opts = {})
547
563
  if @api_client.config.debugging
@@ -563,6 +579,10 @@ module StatusCake
563
579
  raise ArgumentError, 'invalid value for "opts[:"before"]" when calling UptimeApi.list_uptime_test_periods, must be greater than or equal to 0.'
564
580
  end
565
581
 
582
+ if @api_client.config.client_side_validation && !opts[:'after'].nil? && opts[:'after'] < 0
583
+ raise ArgumentError, 'invalid value for "opts[:"after"]" when calling UptimeApi.list_uptime_test_periods, must be greater than or equal to 0.'
584
+ end
585
+
566
586
  # resource path
567
587
  local_var_path = '/uptime/{test_id}/periods'.sub('{' + 'test_id' + '}', CGI.escape(test_id.to_s))
568
588
 
@@ -570,6 +590,7 @@ module StatusCake
570
590
  query_params = opts[:query_params] || {}
571
591
  query_params[:'limit'] = opts[:'limit'] unless opts[:'limit'].nil?
572
592
  query_params[:'before'] = opts[:'before'] unless opts[:'before'].nil?
593
+ query_params[:'after'] = opts[:'after'] unless opts[:'after'].nil?
573
594
 
574
595
  # header parameters
575
596
  header_params = opts[:header_params] || {}
@@ -705,6 +726,7 @@ module StatusCake
705
726
  # @param test_id [String] Uptime check ID
706
727
  # @param [Hash] opts the optional parameters
707
728
  # @option opts [String] :name Name of the check
729
+ # @option opts [String] :website_url URL or IP address of the server under test
708
730
  # @option opts [UptimeTestCheckRate] :check_rate
709
731
  # @option opts [String] :basic_username Basic authentication username
710
732
  # @option opts [String] :basic_password Basic authentication password
@@ -742,6 +764,7 @@ module StatusCake
742
764
  # @param test_id [String] Uptime check ID
743
765
  # @param [Hash] opts the optional parameters
744
766
  # @option opts [String] :name Name of the check
767
+ # @option opts [String] :website_url URL or IP address of the server under test
745
768
  # @option opts [UptimeTestCheckRate] :check_rate
746
769
  # @option opts [String] :basic_username Basic authentication username
747
770
  # @option opts [String] :basic_password Basic authentication password
@@ -824,6 +847,7 @@ module StatusCake
824
847
  # form parameters
825
848
  form_params = opts[:form_params] || {}
826
849
  form_params['name'] = opts[:'name'] unless opts[:'name'].nil?
850
+ form_params['website_url'] = opts[:'website_url'] unless opts[:'website_url'].nil?
827
851
  form_params['check_rate'] = opts[:'check_rate'] unless opts[:'check_rate'].nil?
828
852
  form_params['basic_username'] = opts[:'basic_username'] unless opts[:'basic_username'].nil?
829
853
  form_params['basic_password'] = opts[:'basic_password'] unless opts[:'basic_password'].nil?
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -111,8 +111,6 @@ module StatusCake
111
111
  form_params = opts[:form_params] || {}
112
112
  follow_location = opts[:follow_location] || true
113
113
 
114
- update_params_for_auth! header_params, query_params, opts[:auth_names]
115
-
116
114
  # set ssl_verifyhosts option based on @config.verify_ssl_host (true/false)
117
115
  verify_ssl_host = @config.verify_ssl_host ? 2 : 0
118
116
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -233,13 +233,6 @@ module StatusCake
233
233
  # Returns Auth Settings hash for api client.
234
234
  def auth_settings
235
235
  {
236
- 'api_key' =>
237
- {
238
- type: 'api_key',
239
- in: 'header',
240
- key: 'Authorization',
241
- value: api_key_with_prefix('api_key'),
242
- },
243
236
  }
244
237
  end
245
238
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.
@@ -2,7 +2,7 @@
2
2
 
3
3
  # StatusCake API
4
4
  #
5
- # Copyright (c) 2022
5
+ # Copyright (c) 2023
6
6
  #
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
8
8
  # of this software and associated documentation files (the "Software"), to
@@ -22,7 +22,7 @@
22
22
  # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
23
23
  # IN THE SOFTWARE.
24
24
  #
25
- # API version: 1.0.0
25
+ # API version: 1.1.0
26
26
  # Contact: support@statuscake.com
27
27
  #
28
28
  # Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT.