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 +4 -4
- data/CHANGELOG.md +6 -1
- data/README.md +12 -0
- data/bin/handler-statuspage.rb +4 -2
- data/lib/sensu-plugins-statuspage/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 251a7cc471457c18c5cdd04158f5895da7448e42
|
4
|
+
data.tar.gz: f5b1a3a5818a932da4ffcf2946b37dc3b41f5969
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e453873bce417bd45a9c6c357ce1ae5b3110fde8f36bf635bca7640a790bc68780a392a4158a73d0a5ad0b5de5e9689256aa59a3761b47f9f71413e460c125a
|
7
|
+
data.tar.gz: cf03bb0ca31ef82e54332d5f04d2fd38d09e0c95c898d196e298d0d82a2b35adb2a5e3b0dcdd699f82e94ecf693c287372004556cd32883cc177d19f8c8f5bd0
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
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
|
{
|
data/bin/handler-statuspage.rb
CHANGED
@@ -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(
|
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.
|
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-
|
11
|
+
date: 2017-06-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|