sensu-plugins-json-mutator 0.2.0 → 0.2.1

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
  SHA1:
3
- metadata.gz: 4bf3678e20709f8edea8527f78613936c67be799
4
- data.tar.gz: 854350ddc124f082ca742e5b08979275f960c4db
3
+ metadata.gz: c6466f47910cccd5b21f90016dc5d27b52e67f4c
4
+ data.tar.gz: 58e48e495e6f5721ad90b37f680e2d091afc9a83
5
5
  SHA512:
6
- metadata.gz: 26ca01d37cbd76995846a265508dd841f6a122ff493537b9d2094a4815abf93c8b0e840dd88c0c5eec5f820c7ccba8cd1023ae4bba671743177ebc03b5fc6b0e
7
- data.tar.gz: 3498508e951c3655452cdaa9629bb80af2c737998076f4489083d2015ee7c324340a37a433d1a834e973583b46f29ea314ce772c94d2f21599c22741da274cee
6
+ metadata.gz: a0a993b1403c6675d60d21841c3a3685f8174f6b547f1f863929c9484e13d63fda3f09e974c1cd6094bf960b86f0f80220dff4449aeadadd32e7c3f59819baa8
7
+ data.tar.gz: 8f389a171776693066f8dd17cfbacee32b370b0ab5cdb1623c093fe76de848446e0213833e11b6f0a8b18f735a1ba895965f78894a9075c9d303ad811076e683
data/bin/mutator-json.rb CHANGED
@@ -20,8 +20,8 @@ require 'sensu-plugin'
20
20
  require 'sensu-plugins-json-mutator/mutator'
21
21
 
22
22
  class JSONMutator < Sensu::Mutator
23
- GRAPHITE = /([\w\.]+)\s(.+).*/ # sample.key 42.13 1462521982
24
- STATSD = /([\w\.]+):(.*)\|.*/ # sample.key:42.13|kv
23
+ GRAPHITE = /([^\s]+)\s(.+).*/ # sample.key 42.13 1462521982
24
+ STATSD = /([^\:]+)\:(.*)\|.*/ # sample.key:42.13|kv
25
25
 
26
26
  def mutate
27
27
  lines = @event['check']['output'].lines
@@ -1,3 +1,3 @@
1
1
  module SensuPluginsJSONMutator
2
- VERSION = '0.2.0'.freeze
2
+ VERSION = '0.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-json-mutator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu-Plugins and contributors