sensu-plugins-slack 3.1.1 → 4.0.0
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
- data/CHANGELOG.md +10 -1
- data/README.md +1 -1
- data/bin/handler-slack-multichannel.rb +8 -8
- data/lib/sensu-plugins-slack/version.rb +3 -3
- metadata +11 -12
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 45b457dae81022f3260abe503cef2919e2703112061173b097f60cbec5828313
|
|
4
|
+
data.tar.gz: 02c17b9e8b9349b5e284e338599dc690f1a314d9149935718a94ab21985f04a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1f2a8f97b6870cbf4c9e9c0c9ae36c0401888406db29c89ff9f5ab7bee082cdd0be67027ae17312e889806f6015dde11aaf7c5ac81f62a01d7449a7d4092c963
|
|
7
|
+
data.tar.gz: 8be3d636a03ab8eb64b6e3da44850c873dbeda9219c0e3a044e0bce6b17b32f9c021360d482a9bfac4819e723abaaa006893baf1a452a5fb2521a85f8be08924
|
data/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
|
5
5
|
|
|
6
6
|
## [Unreleased]
|
|
7
7
|
|
|
8
|
+
## [4.0.0] - 2019-04-02
|
|
9
|
+
### Breaking Changes
|
|
10
|
+
- Bump sensu-plugin version from `~> 2.0` to `~> 4.0` for Sensu 1.x to Sensu Go event conversion you can read the changelog entries for [4.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#400---2018-02-17) and [3.0](https://github.com/sensu-plugins/sensu-plugin/blob/master/CHANGELOG.md#300---2018-12-04)
|
|
11
|
+
- drop support and testing for ruby 2.1 and 2.2 as they are EOL
|
|
12
|
+
|
|
13
|
+
### Fixed
|
|
14
|
+
- handler-slack-multichannel.rb: updated the comments to be valid json as they were missing `:` for keys (@lcx)
|
|
15
|
+
|
|
8
16
|
## [3.1.1] - 2018-03-17
|
|
9
17
|
### Fixed
|
|
10
18
|
- handler-slack.rb: rescue any non sensu specification compliant status code passed to the slack handler as the color matching unknown (@majormoses)
|
|
@@ -126,7 +134,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
|
126
134
|
### Added
|
|
127
135
|
- initial release
|
|
128
136
|
|
|
129
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/
|
|
137
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/4.0.0...HEAD
|
|
138
|
+
[4.0.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.1.1...4.0.0
|
|
130
139
|
[3.1.1]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.1.0...3.1.1
|
|
131
140
|
[3.1.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/3.0.0...3.1.0
|
|
132
141
|
[3.0.0]: https://github.com/sensu-plugins/sensu-plugins-slack/compare/2.0.0...3.0.0
|
data/README.md
CHANGED
|
@@ -96,7 +96,7 @@
|
|
|
96
96
|
"channel": channel,
|
|
97
97
|
"attachments": [
|
|
98
98
|
{
|
|
99
|
-
"fallback": "<%= @event["check"]["output"] %>",
|
|
99
|
+
"fallback": "<%= @event["check"]["output"].gsub('"', '\\"') %>",
|
|
100
100
|
"color": "<%= color %>",
|
|
101
101
|
"title": "<%= @event["check"]["name"] %> (<%= @event["client"]["name"] %>)",
|
|
102
102
|
"text": "<%= @event["check"]["output"].gsub('"', '\\"') %>"
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
#
|
|
19
19
|
# { "handlers": {
|
|
20
20
|
# "slack": {
|
|
21
|
-
# "channels" {
|
|
21
|
+
# "channels": {
|
|
22
22
|
# "default": [ "#no-team-alerts" ],
|
|
23
23
|
# "compulsory": [ "#all-alerts" ],
|
|
24
24
|
# }
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
#
|
|
37
37
|
# { "client":{
|
|
38
38
|
# "name": "Appserver"
|
|
39
|
-
# "slack" {
|
|
40
|
-
# "channels" [ "#appserver-team-alerts" ]
|
|
39
|
+
# "slack": {
|
|
40
|
+
# "channels": [ "#appserver-team-alerts" ]
|
|
41
41
|
# },
|
|
42
42
|
# ...,
|
|
43
43
|
# }
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
# { "checks": {
|
|
50
50
|
# "check_my_db": {
|
|
51
51
|
# "handlers": [ "default", "slack" ],
|
|
52
|
-
# "slack" {
|
|
53
|
-
# "channels" [ "#db-team-alerts" ]
|
|
52
|
+
# "slack": {
|
|
53
|
+
# "channels": [ "#db-team-alerts" ]
|
|
54
54
|
# },
|
|
55
55
|
# ...,
|
|
56
56
|
# }
|
|
@@ -61,9 +61,9 @@
|
|
|
61
61
|
#
|
|
62
62
|
# Adding custom_field to handler will add a field to message with that fields content, if that field doesn't exist it will be ignored.
|
|
63
63
|
#
|
|
64
|
-
# "slack" {
|
|
65
|
-
# "channels" [ "#db-team-alerts" ],
|
|
66
|
-
# "custom_field" [
|
|
64
|
+
# "slack": {
|
|
65
|
+
# "channels": [ "#db-team-alerts" ],
|
|
66
|
+
# "custom_field": [
|
|
67
67
|
# "field_name",
|
|
68
68
|
# "field_name_2"
|
|
69
69
|
# ]
|
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:
|
|
4
|
+
version: 4.0.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:
|
|
11
|
+
date: 2019-04-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: erubis
|
|
@@ -30,14 +30,14 @@ dependencies:
|
|
|
30
30
|
requirements:
|
|
31
31
|
- - "~>"
|
|
32
32
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '
|
|
33
|
+
version: '4.0'
|
|
34
34
|
type: :runtime
|
|
35
35
|
prerelease: false
|
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
|
37
37
|
requirements:
|
|
38
38
|
- - "~>"
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: '
|
|
40
|
+
version: '4.0'
|
|
41
41
|
- !ruby/object:Gem::Dependency
|
|
42
42
|
name: bundler
|
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,28 +58,28 @@ dependencies:
|
|
|
58
58
|
requirements:
|
|
59
59
|
- - "~>"
|
|
60
60
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0
|
|
61
|
+
version: '1.0'
|
|
62
62
|
type: :development
|
|
63
63
|
prerelease: false
|
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
65
|
requirements:
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '0
|
|
68
|
+
version: '1.0'
|
|
69
69
|
- !ruby/object:Gem::Dependency
|
|
70
70
|
name: github-markup
|
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
|
72
72
|
requirements:
|
|
73
73
|
- - "~>"
|
|
74
74
|
- !ruby/object:Gem::Version
|
|
75
|
-
version: '
|
|
75
|
+
version: '3.0'
|
|
76
76
|
type: :development
|
|
77
77
|
prerelease: false
|
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
|
79
79
|
requirements:
|
|
80
80
|
- - "~>"
|
|
81
81
|
- !ruby/object:Gem::Version
|
|
82
|
-
version: '
|
|
82
|
+
version: '3.0'
|
|
83
83
|
- !ruby/object:Gem::Dependency
|
|
84
84
|
name: pry
|
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -167,8 +167,8 @@ dependencies:
|
|
|
167
167
|
description: Sensu plugins for interfacing with Slack chat
|
|
168
168
|
email: "<sensu-users@googlegroups.com>"
|
|
169
169
|
executables:
|
|
170
|
-
- handler-slack-multichannel.rb
|
|
171
170
|
- handler-slack.rb
|
|
171
|
+
- handler-slack-multichannel.rb
|
|
172
172
|
extensions: []
|
|
173
173
|
extra_rdoc_files: []
|
|
174
174
|
files:
|
|
@@ -197,15 +197,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
197
197
|
requirements:
|
|
198
198
|
- - ">="
|
|
199
199
|
- !ruby/object:Gem::Version
|
|
200
|
-
version: 2.
|
|
200
|
+
version: 2.3.0
|
|
201
201
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
202
202
|
requirements:
|
|
203
203
|
- - ">="
|
|
204
204
|
- !ruby/object:Gem::Version
|
|
205
205
|
version: '0'
|
|
206
206
|
requirements: []
|
|
207
|
-
|
|
208
|
-
rubygems_version: 2.7.6
|
|
207
|
+
rubygems_version: 3.0.3
|
|
209
208
|
signing_key:
|
|
210
209
|
specification_version: 4
|
|
211
210
|
summary: Sensu plugins for interfacing with Slack chat
|