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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecec93fcdad20ded690183b46d1190544be11d1a4d25a0be3ad2d43f866390a7
4
- data.tar.gz: 953b9126df12d4d1fd24601cadfd28714b7431988e4ed4c826f9da0955374371
3
+ metadata.gz: 9b331b034218de65cc7d965a6136348bb39ea74af1b09b3cde378b0e19af985b
4
+ data.tar.gz: 06755ff6af1bf028ff6705af8cd17a9f335a8104d1331fce85b41905c7731117
5
5
  SHA512:
6
- metadata.gz: 8e046da8e46bed5dc66a7e66296c3822dcce92642993e916d788a02bbe3e77b206a7558932bf9ba679396202bedc99396286b53e21583cb3e2233fc6b0dc848e
7
- data.tar.gz: 266c2bb8b84094163069c5ae9d50fe4cb4f528b29e054ce42a066259beadd67a547b3ce77fba812de2a4fe1c9feae44b00a31152d7589c2d8e278edfd93ece21
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.1...HEAD
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": ["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,
@@ -120,7 +120,7 @@ class Opsgenie < Sensu::Handler
120
120
 
121
121
  def tags
122
122
  tags = []
123
- tags << json_config['tags'] if json_config['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
@@ -6,7 +6,7 @@ module SensuPluginsOpsgenie
6
6
  module Version
7
7
  MAJOR = 4
8
8
  MINOR = 1
9
- PATCH = 1
9
+ PATCH = 2
10
10
 
11
11
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
12
12
 
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.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-01-17 00:00:00.000000000 Z
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.4
270
+ rubygems_version: 2.7.5
271
271
  signing_key:
272
272
  specification_version: 4
273
273
  summary: Sensu plugins for working with opsgenie