sensu-plugins-statuspage 1.0.0 → 1.1.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
  SHA1:
3
- metadata.gz: 17f82413bbc20447f8047aaa45918250ff8cfbe8
4
- data.tar.gz: 2ee59c6f4026607abd7ff6a1d2b48976ec7c9132
3
+ metadata.gz: 251a7cc471457c18c5cdd04158f5895da7448e42
4
+ data.tar.gz: f5b1a3a5818a932da4ffcf2946b37dc3b41f5969
5
5
  SHA512:
6
- metadata.gz: f64d08b60b7c8711e80af99b34a94c9657ee28f1da2d5157dedaad2a39c0924be9b5b0fb637de0962a6d1c130cec5acee4e6934e0795c8ffd1833a914be76fc3
7
- data.tar.gz: 62928df748d60ae9e0a488c33f211775748b6311b70418d5ea54046c1267adcf742429c5ca7f8709202ca732616dd9d34b03893692ae2483068ad6b0cb4dab54
6
+ metadata.gz: 5e453873bce417bd45a9c6c357ce1ae5b3110fde8f36bf635bca7640a790bc68780a392a4158a73d0a5ad0b5de5e9689256aa59a3761b47f9f71413e460c125a
7
+ data.tar.gz: cf03bb0ca31ef82e54332d5f04d2fd38d09e0c95c898d196e298d0d82a2b35adb2a5e3b0dcdd699f82e94ecf693c287372004556cd32883cc177d19f8c8f5bd0
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## [Unreleased]
7
7
 
8
+ ## [1.1.0] - 2017-06
9
+ ### Added
10
+ - handler-statuspage.rb: add ability to send requests through an unauthenticated proxy (@drhey)
11
+
8
12
  ## [1.0.0] - 2017-05-16
9
13
  ### Added
10
14
  - Support for Ruby 2.3 and 2.4 (@eheydrick)
@@ -30,7 +34,8 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
30
34
  ### Added
31
35
  - initial release
32
36
 
33
- [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-statuspage/compare/1.0.0...HEAD
37
+ [Unreleased]: https://github.com/sensu-plugins/sensu-plugins-statuspage/compare/1.1.0...HEAD
38
+ [1.1.0]: https://github.com/sensu-plugins/sensu-plugins-statuspage/compare/1.0.0...1.1.0
34
39
  [1.0.0]: https://github.com/sensu-plugins/sensu-plugins-statuspage/compare/0.0.3...1.0.0
35
40
  [0.0.3]: https://github.com/sensu-plugins/sensu-plugins-statuspage/compare/0.0.2...0.0.3
36
41
  [0.0.2]: https://github.com/sensu-plugins/sensu-plugins-statuspage/compare/0.0.1...0.0.2
data/README.md CHANGED
@@ -32,6 +32,18 @@ Sends graphite-style metrics to statuspage.io, for displaying public metrics. N
32
32
  }
33
33
  ```
34
34
 
35
+ For use of a basic proxy, use "proxy_address" and "proxy_port":
36
+ ```
37
+ {
38
+ "statuspage": {
39
+ "api_key": "YOURAPIKEY",
40
+ "page_id": "YOURPAGEID",
41
+ "proxy_port": "YOURPROXY",
42
+ "proxy_address": "YOURPROXYADDRESS"
43
+ }
44
+ }
45
+ ```
46
+
35
47
  **metrics-statuspageio**
36
48
  ```
37
49
  {
@@ -87,10 +87,12 @@ class StatusPage < Sensu::Handler
87
87
  def handle
88
88
  statuspage = Redphone::Statuspage.new(
89
89
  page_id: settings['statuspage']['page_id'],
90
- api_key: settings['statuspage']['api_key']
90
+ api_key: settings['statuspage']['api_key'],
91
+ proxy_address: settings['statuspage']['proxy_address'],
92
+ proxy_port: settings['statuspage']['proxy_port']
91
93
  )
92
94
  begin
93
- timeout(3) do
95
+ Timeout.timeout(3) do
94
96
  if @event['check'].key?('component_id')
95
97
  unless ignore_status?(component_status)
96
98
  statuspage.update_component(
@@ -3,7 +3,7 @@ module SensuPluginsStatuspage
3
3
  # This defines the version of the gem
4
4
  module Version
5
5
  MAJOR = 1
6
- MINOR = 0
6
+ MINOR = 1
7
7
  PATCH = 0
8
8
 
9
9
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-statuspage
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.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: 2017-05-17 00:00:00.000000000 Z
11
+ date: 2017-06-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin