sensu-plugins-slack 3.0.0 → 3.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 +9 -1
- data/bin/handler-slack.rb +9 -0
- data/lib/sensu-plugins-slack/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7efce7409ed4fc12c85d25d5b310bd04b4b1b35f2330db8c7cac93643c3af24c
|
4
|
+
data.tar.gz: 4edac8431ae9543ea983f3c0e2147b374fe304784a358d4a7fcd0ae740134cb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 96af9cca85ebc39233536367fe90d2d8dcb44c969389faa8af01475afad4be170a8bbd9b4767433d5970b3bb6fb6a34113a22d1f62b7d4f2896bcef13400124e
|
7
|
+
data.tar.gz: 00a0bea5bd7fec2e1e2ffc7244c41d40afcd93052de9a2a4e181b92001018ae7705036757464a94ab6b7d6e4faeb853dc1f9216d05b04b36c87a088581865a55
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,13 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
5
5
|
|
6
6
|
## [Unreleased]
|
7
7
|
|
8
|
+
## [3.1.0] - 2018-01-31
|
9
|
+
### Changed
|
10
|
+
- `handler-slack.rb`: emit an `unknown` with helpful debug messages when passing in bad config (@majormoses)
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- added sample event payload and config (@majormoses)
|
14
|
+
|
8
15
|
## [3.0.0] - 2018-01-11
|
9
16
|
### Breaking Changes
|
10
17
|
- bumped `sensu-plugin` dependency to 2.x which removes in handler filtering for `occurrences`. If you want to keep using the same filtering features you must specify it and ensure that you have applied the filter by setting `"filters": ["occurrences"]`. For more information see [here](https://blog.sensuapp.org/deprecating-event-filtering-in-sensu-plugin-b60c7c500be3) (@majormoses)
|
@@ -115,7 +122,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
115
122
|
### Added
|
116
123
|
- initial release
|
117
124
|
|
118
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.
|
125
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.1.0...HEAD
|
126
|
+
[3.1.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.0.0...3.1.0
|
119
127
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/2.0.0...3.0.0
|
120
128
|
[2.0.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.5.0...2.0.0
|
121
129
|
[1.5.1]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/1.5.0...1.5.1
|
data/bin/handler-slack.rb
CHANGED
@@ -96,6 +96,15 @@ class Slack < Sensu::Handler
|
|
96
96
|
|
97
97
|
def get_setting(name)
|
98
98
|
settings[config[:json_config]][name]
|
99
|
+
rescue TypeError, NoMethodError => e
|
100
|
+
puts "settings: #{settings}"
|
101
|
+
puts "slack key: #{config[:json_config]}. This should not be a file name/path."
|
102
|
+
puts <<-EOS
|
103
|
+
key name: #{name}. This is the key in config that broke.
|
104
|
+
Check the slack key to make sure it's parent key exists"
|
105
|
+
EOS
|
106
|
+
puts "error: #{e.message}"
|
107
|
+
exit 3 # unknown
|
99
108
|
end
|
100
109
|
|
101
110
|
def handle
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-slack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.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: 2018-01
|
11
|
+
date: 2018-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: erubis
|