sensu-plugins-opsgenie 4.1.1 → 4.1.2
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 +9 -1
- data/README.md +4 -1
- data/bin/handler-opsgenie.rb +1 -1
- data/lib/sensu-plugins-opsgenie/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b331b034218de65cc7d965a6136348bb39ea74af1b09b3cde378b0e19af985b
|
4
|
+
data.tar.gz: 06755ff6af1bf028ff6705af8cd17a9f335a8104d1331fce85b41905c7731117
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a31eda02fa5551796050e3c0248a2c9e5a84a3691156c4a4e225cff1564c2613ee40a68e6546e1044fb9975713888bb37a126a6ad4ca13877297159040a3801c
|
7
|
+
data.tar.gz: 0d05f8a9e29149ea4199f511d6fb9ec0edf62f05189a0bcb86497e1f0e693f68b6f1fc86d37584d6aeee6241b1af4be0491977d2558449a433f92ac46fa5375a
|
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
|
+
## [4.1.2] - 2018-02-05
|
9
|
+
### Fixed
|
10
|
+
- Handling of tags for events (@Castaglia)
|
11
|
+
|
12
|
+
### Changed
|
13
|
+
- updated README.md to provide accurate example for `teams` configuration (@Castaglia)
|
14
|
+
|
8
15
|
## [4.1.1] - 2018-01-16
|
9
16
|
### Security
|
10
17
|
- updated rubocop dependency to `~> 0.51.0` per: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2017-8418. (@majormoses)
|
@@ -92,7 +99,8 @@ This CHANGELOG follows the format listed [here](https://github.com/sensu-plugins
|
|
92
99
|
- initial release
|
93
100
|
- Fixed json configuration load
|
94
101
|
|
95
|
-
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/4.1.
|
102
|
+
[Unreleased]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/4.1.2...HEAD
|
103
|
+
[4.1.2]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/4.1.1...4.1.2
|
96
104
|
[4.1.1]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/4.1.0...4.1.1
|
97
105
|
[4.1.0]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/4.0.1...4.1.0
|
98
106
|
[4.0.1]: https://github.com/sensu-plugins/sensu-plugins-opsgenie/compare/4.0.0...4.0.1
|
data/README.md
CHANGED
@@ -19,7 +19,10 @@
|
|
19
19
|
{
|
20
20
|
"opsgenie": {
|
21
21
|
"customerKey": "the-key",
|
22
|
-
"teams": [
|
22
|
+
"teams": [
|
23
|
+
{ "name": "the-team" },
|
24
|
+
{ "id": "4513b7ea-3b91-438f-b7e4-e3e54af9147c" }
|
25
|
+
],
|
23
26
|
"recipients": "the-recipients",
|
24
27
|
"source": "alert-source",
|
25
28
|
"overwrite_quiet_hours": true,
|
data/bin/handler-opsgenie.rb
CHANGED
@@ -120,7 +120,7 @@ class Opsgenie < Sensu::Handler
|
|
120
120
|
|
121
121
|
def tags
|
122
122
|
tags = []
|
123
|
-
tags
|
123
|
+
tags += json_config['tags'] if json_config['tags']
|
124
124
|
tags << 'OverwriteQuietHours' if event_status == 2 && json_config['overwrite_quiet_hours'] == true
|
125
125
|
tags << 'unknown' if event_status >= 3
|
126
126
|
tags << 'critical' if event_status == 2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu-plugins-opsgenie
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.
|
4
|
+
version: 4.1.2
|
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-
|
11
|
+
date: 2018-02-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|
@@ -267,7 +267,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
267
267
|
version: '0'
|
268
268
|
requirements: []
|
269
269
|
rubyforge_project:
|
270
|
-
rubygems_version: 2.7.
|
270
|
+
rubygems_version: 2.7.5
|
271
271
|
signing_key:
|
272
272
|
specification_version: 4
|
273
273
|
summary: Sensu plugins for working with opsgenie
|