sensu-plugins-sensu 4.1.0 → 4.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a2744d297a085cf73b687afdb09cc9f09f0e6e2d089e3026c3b0320b6bb247ee
4
- data.tar.gz: e8b5002e764d93097c947a91c711057d92d79d2a0d27b19aeed86361f391e521
3
+ metadata.gz: 85d6a4672fdf2f9b55f3a7c61e4bd1c7183393e0f57512fa2d98e40f7731bd35
4
+ data.tar.gz: c1bc51e0696e66069bb100d17576e254ff7ad8f2316e9f0379c444f9088aa386
5
5
  SHA512:
6
- metadata.gz: 707aa9cb0d8d4dcc53324ac1273d3876aa56c6223cb9a6eae805c51629aa407ed88bc1a07da80a8e474347be7c8e5f07101f56d1531214c6f29383a823398bd4
7
- data.tar.gz: e453b017a8b28ba70f29039ad5dc769f6df18e85e925276dfdd727b11c255113c95bd20866143fcb25691b04d1abe88d0cab59a8f2ebb711b30c73ad4085281b
6
+ metadata.gz: f7d71b2ab216f2a9e5172798d035a6d52989faa4902d0d589ebe9c0ecb9fe2c8fee559e05c346e5aff37712bb765749530e70d6176255aa029c9cdc89447f9c0
7
+ data.tar.gz: c6fa233ad03d3bb88d7908e5698c124f387a47426b42fd6cbe6f68fc23bac1ee868f0543bd0172ea13b0bf60419c0bbc6a1faa19900d92e2b589f99db3c4935e
@@ -6,6 +6,10 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [4.2.0] - 2018-09-19
10
+ ### Added
11
+ - check-stale-results.rb: added an option to pass read_timeout for http request.
12
+
9
13
  ## [4.1.0] - 2018-08-28
10
14
  ### Changed
11
15
  - bumped dependency of `sensu-plugin` to `~> 2.6` to provide paginated HTTP get (@cwjohnston)
@@ -149,7 +153,8 @@ Which is based on [Keep A Changelog](http://keepachangelog.com/)
149
153
  ### Added
150
154
  - initial release
151
155
 
152
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.1.0...HEAD
156
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.2.0...HEAD
157
+ [4.2.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.1.0...4.2.0
153
158
  [4.1.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/4.0.0...4.1.0
154
159
  [4.0.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/3.0.0...4.0.0
155
160
  [3.0.0]: https://github.com/sensu-plugins/sensu-plugins-sensu/compare/2.5.0...3.0.0
@@ -45,6 +45,13 @@ class CheckStaleResults < Sensu::Plugin::Check::CLI
45
45
  proc: proc(&:to_i),
46
46
  default: nil
47
47
 
48
+ option :timeout,
49
+ description: 'read timeout for http request',
50
+ short: '-t <TIME>',
51
+ long: '--timeout <TIME>',
52
+ proc: proc(&:to_i),
53
+ default: 60
54
+
48
55
  def initialize
49
56
  super
50
57
 
@@ -78,7 +85,7 @@ class CheckStaleResults < Sensu::Plugin::Check::CLI
78
85
  HEREDOC
79
86
  end
80
87
  uri = get_uri(path)
81
- Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https') do |http|
88
+ Net::HTTP.start(uri.host, uri.port, use_ssl: uri.scheme == 'https', read_timeout: config[:timeout]) do |http|
82
89
  request = net_http_req_class(method).new(path)
83
90
  if settings['api']['user'] && settings['api']['password']
84
91
  request.basic_auth(settings['api']['user'], settings['api']['password'])
@@ -4,7 +4,7 @@ module SensuPluginsSensu
4
4
  # This defines the version of the gem
5
5
  module Version
6
6
  MAJOR = 4
7
- MINOR = 1
7
+ MINOR = 2
8
8
  PATCH = 0
9
9
 
10
10
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-sensu
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-08-28 00:00:00.000000000 Z
11
+ date: 2018-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: chronic_duration