sensu-plugins-pagerduty 3.0.0 → 3.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +15 -2
- data/README.md +1 -1
- data/bin/handler-pagerduty.rb +3 -0
- data/lib/sensu-plugins-pagerduty/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: a898561f9c8faa276173dcc570a4e20ea5710af9eee224c633d32cec079de0ed
|
4
|
+
data.tar.gz: 8cc2058d9118c61344ff6e0769caca89a5a82ec3b7dbe64becefa823ec2cf4c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c3efa587c416484e501a5343550470d913b82adf9b2e3fa04c6a0c62bce41918470dacd956de408e0e56a20ad852997de61ea11aa6c96330fc6ab9cc2415470b
|
7
|
+
data.tar.gz: 7327d39fc842b4bd49ccfb1a096baa20c86260b82f1f65c5fe9776a361da088761e00fbc0bc70a21db8be33c7089bc8203ea08e382d8d61a5dc62f3e1f7ba60a
|
data/CHANGELOG.md
CHANGED
@@ -1,9 +1,21 @@
|
|
1
1
|
# Change Log
|
2
2
|
This project adheres to [Semantic Versioning](http://semver.org/).
|
3
3
|
|
4
|
-
This CHANGELOG follows the format listed
|
4
|
+
This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins/community/blob/master/HOW_WE_CHANGELOG.md)
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
|
+
|
8
|
+
## [3.0.1] - 2018-02-16
|
9
|
+
### Added
|
10
|
+
- ruby 2.4 testing (@majormoses)
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
- PR template typo (@majormoses)
|
14
|
+
- if pager_team is not found in the handler json config, the default key will be used instead (@internaught)
|
15
|
+
|
16
|
+
### Changed
|
17
|
+
- updated changelog guidelines location (@majormoses)
|
18
|
+
|
7
19
|
## [3.0.0] - 2017-06-01
|
8
20
|
### Breaking Change
|
9
21
|
- changed the precedence of pager_team evaluation from `client -> check -> json_config` to `check -> client -> json_config` (@guru-beach)
|
@@ -103,7 +115,8 @@ marking it as a stable 1.0.0 release.
|
|
103
115
|
### Added
|
104
116
|
- initial release
|
105
117
|
|
106
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-pagerduty/compare/3.0.
|
118
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-pagerduty/compare/3.0.1...HEAD
|
119
|
+
[3.0.1]: https://github.com/sensu-plugins/sensu-plugins-pagerduty/compare/3.0.0...3.0.1
|
107
120
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-pagerduty/compare/2.2.0...3.0.0
|
108
121
|
[2.2.0]: https://github.com/sensu-plugins/sensu-plugins-pagerduty/compare/2.1.0...2.2.0
|
109
122
|
[2.1.0]: https://github.com/sensu-plugins/sensu-plugins-pagerduty/compare/2.0.0...2.1.0
|
data/README.md
CHANGED
@@ -33,7 +33,7 @@ PagerDuty supports dedup. Dedup is useful when you want to create a single alert
|
|
33
33
|
}
|
34
34
|
```
|
35
35
|
|
36
|
-
In the Client hash you can define a `pager_team` key value pair. If the the client hash contains the `pager_team` key it will then no longer use the default `pagerduty.api_key` from the above hash but will look for the value given in the client. The following client hash will
|
36
|
+
In the Client hash you can define a `pager_team` key value pair. If the the client hash contains the `pager_team` key it will then no longer use the default `pagerduty.api_key` from the above hash but will look for the value given in the client. If the value given in the client is not found in the handler specified, then the default `pagerduty.api_key` will be used. The following client hash will alert using the team_name1 api key instead of the default api_key. This will allow different teams/hosts to alert different escalation paths.
|
37
37
|
|
38
38
|
```
|
39
39
|
{
|
data/bin/handler-pagerduty.rb
CHANGED
@@ -49,6 +49,9 @@ class PagerdutyHandler < Sensu::Handler
|
|
49
49
|
@api_key ||=
|
50
50
|
if @event['check']['pager_team']
|
51
51
|
settings[json_config][@event['check']['pager_team']]['api_key']
|
52
|
+
elsif @event['client']['pager_team'] && settings[json_config][@event['client']['pager_team']].nil?
|
53
|
+
puts "you configured your client to use a pager team of #{@event['client']['pager_team']} but it was nil, falling back to default key"
|
54
|
+
settings[json_config]['api_key']
|
52
55
|
elsif @event['client']['pager_team']
|
53
56
|
settings[json_config][@event['client']['pager_team']]['api_key']
|
54
57
|
else
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-pagerduty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
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:
|
11
|
+
date: 2018-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -205,7 +205,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
205
205
|
version: '0'
|
206
206
|
requirements: []
|
207
207
|
rubyforge_project:
|
208
|
-
rubygems_version: 2.
|
208
|
+
rubygems_version: 2.7.6
|
209
209
|
signing_key:
|
210
210
|
specification_version: 4
|
211
211
|
summary: Sensu plugins for pagerduty
|