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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e4a3db515ce06dab242e7320817c87b43fbd0c2a
4
- data.tar.gz: 5b64f3cd4e67a5c0c8ffea459cf67ab219067130
2
+ SHA256:
3
+ metadata.gz: a898561f9c8faa276173dcc570a4e20ea5710af9eee224c633d32cec079de0ed
4
+ data.tar.gz: 8cc2058d9118c61344ff6e0769caca89a5a82ec3b7dbe64becefa823ec2cf4c0
5
5
  SHA512:
6
- metadata.gz: bd550d76ca2c81a70db7a0d172b21d043bad843c0996e239aaefb700082efb0ce5c506594790df6ff6be52f667f9a916f4a3454516de1800b8e4de55515b605d
7
- data.tar.gz: f288cfa4f3d08c0a53b8968f3d6d28f1569d13dc4f0973c49e412850a304c45fd4cd311a54d2bcc0eaa8654eafd1a2eead94907235878edda432667fc743423d
6
+ metadata.gz: c3efa587c416484e501a5343550470d913b82adf9b2e3fa04c6a0c62bce41918470dacd956de408e0e56a20ad852997de61ea11aa6c96330fc6ab9cc2415470b
7
+ data.tar.gz: 7327d39fc842b4bd49ccfb1a096baa20c86260b82f1f65c5fe9776a361da088761e00fbc0bc70a21db8be33c7089bc8203ea08e382d8d61a5dc62f3e1f7ba60a
@@ -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 at [Keep A Changelog](http://keepachangelog.com/)
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.0...HEAD
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 alert using the team_name1 api key instead of the default api_key. This will allow different teams/hosts to alert different escalation paths.
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
  {
@@ -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
@@ -2,7 +2,7 @@ module SensuPluginsPagerduty
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- PATCH = 0
5
+ PATCH = 1
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
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.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: 2017-06-01 00:00:00.000000000 Z
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.4.5
208
+ rubygems_version: 2.7.6
209
209
  signing_key:
210
210
  specification_version: 4
211
211
  summary: Sensu plugins for pagerduty