sensu-plugins-statuspage 0.0.2 → 0.0.3
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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +3 -1
- data/CHANGELOG.md +5 -1
- data/README.md +1 -1
- data/bin/handler-statuspage.rb +3 -7
- data/lib/sensu-plugins-statuspage/version.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ed999d190d02e7b7a73ba6a97be8870265be9e4e
|
|
4
|
+
data.tar.gz: eefa024dbedf7375200fcfc49bce61e99d6a3069
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1a08421451344371b665a061247c3d5de1e64e23d408a7b42931ac0c4de30a9ac0b7df0fb368d795745a4a1b6c081a4d4f767fa2de7a06ce748dfb071219b31c
|
|
7
|
+
data.tar.gz: 9d36ce3406a4831a4e5001e0f423cfaab165842f262cbdc659c79c9d167ef69b362e2e1a85955cc0411e0c64c0ac454bf85df08ead9062a2d4f73036c5cd2d0e
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
��rA��OC!��7Y�L�uB;G����j�9�Q����Ĵ������&=���g�#X��F�R�#%��C)�76��J�I��d��=`!�6��8G9"0,�
|
|
2
|
+
"�Q�j��B�O�e�D��>�9s���
|
|
3
|
+
��D��Aa�4�)�BJ�Rۈ��QF�JO��~��`I`��]O����T7��
|
data/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,11 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
|
3
3
|
|
|
4
4
|
This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachangelog.com/)
|
|
5
5
|
|
|
6
|
-
## Unreleased]
|
|
6
|
+
## [Unreleased]
|
|
7
|
+
|
|
8
|
+
## [0.0.3] - 2015-12-30
|
|
9
|
+
### Changed
|
|
10
|
+
- fixed incident resolving
|
|
7
11
|
|
|
8
12
|
## [0.0.2] - 2015-07-14
|
|
9
13
|
### Changed
|
data/README.md
CHANGED
|
@@ -48,7 +48,7 @@ Sends graphite-style metrics to statuspage.io, for displaying public metrics. N
|
|
|
48
48
|
```
|
|
49
49
|
## Installation
|
|
50
50
|
|
|
51
|
-
[Installation and Setup](
|
|
51
|
+
[Installation and Setup](http://sensu-plugins.io/docs/installation_instructions.html)
|
|
52
52
|
|
|
53
53
|
## Notes
|
|
54
54
|
|
data/bin/handler-statuspage.rb
CHANGED
|
@@ -33,8 +33,6 @@ class StatusPage < Sensu::Handler
|
|
|
33
33
|
'major_outage'
|
|
34
34
|
when 'resolve'
|
|
35
35
|
'operational'
|
|
36
|
-
else # rubocop:disable all
|
|
37
|
-
nil
|
|
38
36
|
end
|
|
39
37
|
unless status.nil?
|
|
40
38
|
statuspage.update_component(
|
|
@@ -44,8 +42,7 @@ class StatusPage < Sensu::Handler
|
|
|
44
42
|
end
|
|
45
43
|
response = case @event['action']
|
|
46
44
|
when 'create'
|
|
47
|
-
|
|
48
|
-
response = statuspage.create_realtime_incident( # rubocop:disable UselessAssignment, SpaceInsideParens
|
|
45
|
+
statuspage.create_realtime_incident(
|
|
49
46
|
name: incident_key,
|
|
50
47
|
status: 'investigating',
|
|
51
48
|
wants_twitter_update: 'f',
|
|
@@ -59,15 +56,14 @@ class StatusPage < Sensu::Handler
|
|
|
59
56
|
break
|
|
60
57
|
end
|
|
61
58
|
end
|
|
62
|
-
|
|
63
|
-
response = statuspage.update_incident( # rubocop:disable UselessAssignment, SpaceInsideParens
|
|
59
|
+
statuspage.update_incident(
|
|
64
60
|
name: "Problem with #{incident_key} has been resolved.",
|
|
65
61
|
wants_twitter_update: 'f',
|
|
66
62
|
status: 'resolved',
|
|
67
63
|
incident_id: incident_id
|
|
68
64
|
)
|
|
69
65
|
end
|
|
70
|
-
if (response['status'] == 'investigating'
|
|
66
|
+
if (response['status'] == 'investigating' && @event['action'] == 'create') || (response['status'] == 'resolved' && @event['action'] == 'resolve')
|
|
71
67
|
puts 'statuspage -- ' + @event['action'].capitalize + 'd incident -- ' + incident_key
|
|
72
68
|
else
|
|
73
69
|
puts 'statuspage -- failed to ' + @event['action'] + ' incident -- ' + incident_key
|
data.tar.gz.sig
CHANGED
|
Binary file
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: sensu-plugins-statuspage
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sensu-Plugins and contributors
|
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
|
30
30
|
8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
|
|
31
31
|
HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
|
|
32
32
|
-----END CERTIFICATE-----
|
|
33
|
-
date:
|
|
33
|
+
date: 2016-01-05 00:00:00.000000000 Z
|
|
34
34
|
dependencies:
|
|
35
35
|
- !ruby/object:Gem::Dependency
|
|
36
36
|
name: sensu-plugin
|
|
@@ -136,14 +136,14 @@ dependencies:
|
|
|
136
136
|
requirements:
|
|
137
137
|
- - '='
|
|
138
138
|
- !ruby/object:Gem::Version
|
|
139
|
-
version:
|
|
139
|
+
version: 0.32.1
|
|
140
140
|
type: :development
|
|
141
141
|
prerelease: false
|
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
|
143
143
|
requirements:
|
|
144
144
|
- - '='
|
|
145
145
|
- !ruby/object:Gem::Version
|
|
146
|
-
version:
|
|
146
|
+
version: 0.32.1
|
|
147
147
|
- !ruby/object:Gem::Dependency
|
|
148
148
|
name: rspec
|
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
241
241
|
version: '0'
|
|
242
242
|
requirements: []
|
|
243
243
|
rubyforge_project:
|
|
244
|
-
rubygems_version: 2.4.
|
|
244
|
+
rubygems_version: 2.4.8
|
|
245
245
|
signing_key:
|
|
246
246
|
specification_version: 4
|
|
247
247
|
summary: Sensu plugins for statuspage
|
metadata.gz.sig
CHANGED
|
Binary file
|