sensu-plugins-logstash 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 79d662d8f1fa537847c343ecd70a946c3fa7187e
4
- data.tar.gz: cb26c4dd3c737ce94fbd66250230835482d053e3
3
+ metadata.gz: 8b1163eb37e2871f1ceb59378ef0be9b30a364ed
4
+ data.tar.gz: 5376b59314d210e76bf87d9f21ebea4ed3eb8770
5
5
  SHA512:
6
- metadata.gz: 038c8f6b98a97bc873ba729ed97bf138a580fb55a517068ff7c6d3ed7deb5ed4c626ceab945d57772fe82b6952b04108f39fad28fee919396e0ee8bd9689bfec
7
- data.tar.gz: 790f7474e60677951aac231c804db9010ba06dce6bdfc2bd7c5823e5c0d1f01d1ffd29e4ed0830c12a3684944f844a36249f651da36e2a4e339fa63f7e52c992
6
+ metadata.gz: 06bca02496f21d3ba527a11972a846b046f8866c5c6d3c5998fd4ec4ccb057f4f50fcd86650848e45076b4a0f261116efa7af8e7093aa338493f1d8081dc2a15
7
+ data.tar.gz: 7d08a15a0c7ef793f17f0bbe5f4c4041f0f8e64347d8ade2973bb03155f53165bb14a84b7fbc6fe4adcc81edc2d6f1cbcd18f1c93866173c6fce929edc6639c5
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,4 @@
1
- ����F8��AT6�G^�k��`�5�ދ�e2�`�S R�D)��N���>���yhi���i\X�^ň��|
1
+ 3��X�S򈊉$�`c΀󧿈ws��@�'�4��>̏�53��5��)4mfc
2
+ ��6�D$u�n�'{iV���)#�I���2%5�\�8}C
3
+ %��R�&9ѬJ�����*����#Ak���/֧S����$J� #|Ө��Iͨnu�)ժ7�Y@��+
4
+ �"�p�8+�v�P�'��X%l�j��.�G~�kXQ�B�%�֤c�x(y��A>�σ���h�PI��vj}]5>�M2_�o2,��ϵ�σ r��|X4IF�
data/CHANGELOG.md CHANGED
@@ -5,6 +5,10 @@ This CHANGELOG follows the format listed at [Keep A Changelog](http://keepachang
5
5
 
6
6
  ## Unreleased][unreleased]
7
7
 
8
+ ## [0.0.2] - 2015-07-14
9
+ ### Changed
10
+ - updated sensu-plugin gem to 1.2.0
11
+
8
12
  ## 0.0.1 - 2015-05-29
9
13
 
10
14
  ### Added
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## Sensu-Plugins-logstash
2
2
 
3
- [![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash)
3
+ [ ![Build Status](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash.svg?branch=master)](https://travis-ci.org/sensu-plugins/sensu-plugins-logstash)
4
4
  [![Gem Version](https://badge.fury.io/rb/sensu-plugins-logstash.svg)](http://badge.fury.io/rb/sensu-plugins-logstash)
5
5
  [![Code Climate](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash/badges/gpa.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash)
6
6
  [![Test Coverage](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash/badges/coverage.svg)](https://codeclimate.com/github/sensu-plugins/sensu-plugins-logstash)
@@ -64,20 +64,20 @@ class LogstashHandler < Sensu::Handler
64
64
  def handle # rubocop:disable all
65
65
  time = Time.now.utc.iso8601
66
66
  logstash_msg = {
67
- :@timestamp => time,
68
- :@version => 1,
69
- :source => ::Socket.gethostname,
70
- :tags => ["sensu-#{action_to_string}"],
71
- :message => @event['check']['output'],
72
- :host => @event['client']['name'],
73
- :timestamp => @event['check']['issued'],
74
- :address => @event['client']['address'],
75
- :check_name => @event['check']['name'],
76
- :command => @event['check']['command'],
77
- :status => event_status,
78
- :flapping => @event['check']['flapping'],
79
- :occurrences => @event['occurrences'],
80
- :action => @event['action']
67
+ :@timestamp => time, # rubocop:disable Style/HashSyntax
68
+ :@version => 1, # rubocop:disable Style/HashSyntax
69
+ :source => ::Socket.gethostname, # rubocop:disable Style/HashSyntax
70
+ :tags => ["sensu-#{action_to_string}"], # rubocop:disable Style/HashSyntax
71
+ :message => @event['check']['output'], # rubocop:disable Style/HashSyntax
72
+ :host => @event['client']['name'], # rubocop:disable Style/HashSyntax
73
+ :timestamp => @event['check']['issued'], # rubocop:disable Style/HashSyntax
74
+ :address => @event['client']['address'], # rubocop:disable Style/HashSyntax
75
+ :check_name => @event['check']['name'], # rubocop:disable Style/HashSyntax
76
+ :command => @event['check']['command'], # rubocop:disable Style/HashSyntax
77
+ :status => event_status, # rubocop:disable Style/HashSyntax
78
+ :flapping => @event['check']['flapping'], # rubocop:disable Style/HashSyntax
79
+ :occurrences => @event['occurrences'], # rubocop:disable Style/HashSyntax
80
+ :action => @event['action'] # rubocop:disable Style/HashSyntax
81
81
  }
82
82
  logstash_msg[:type] = settings['logstash']['type'] if settings['logstash'].key?('type')
83
83
 
@@ -2,7 +2,7 @@ module SensuPluginsLogstash
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 0
5
- PATCH = 2
5
+ PATCH = 3
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sensu-plugins-logstash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sensu Plugins and contributors
@@ -30,7 +30,7 @@ cert_chain:
30
30
  8sHuVruarogxxKPBzlL2is4EUb6oN/RdpGx2l4254+nyR+abg//Ed27Ym0PkB4lk
31
31
  HP0m8WSjZmFr109pE/sVsM5jtOCvogyujQOjNVGN4gz1wwPr
32
32
  -----END CERTIFICATE-----
33
- date: 2015-06-03 00:00:00.000000000 Z
33
+ date: 2015-07-14 00:00:00.000000000 Z
34
34
  dependencies:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: sensu-plugin
@@ -38,14 +38,14 @@ dependencies:
38
38
  requirements:
39
39
  - - '='
40
40
  - !ruby/object:Gem::Version
41
- version: 1.1.0
41
+ version: 1.2.0
42
42
  type: :runtime
43
43
  prerelease: false
44
44
  version_requirements: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - '='
47
47
  - !ruby/object:Gem::Version
48
- version: 1.1.0
48
+ version: 1.2.0
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: redis
51
51
  requirement: !ruby/object:Gem::Requirement
@@ -92,14 +92,14 @@ dependencies:
92
92
  name: rubocop
93
93
  requirement: !ruby/object:Gem::Requirement
94
94
  requirements:
95
- - - "~>"
95
+ - - '='
96
96
  - !ruby/object:Gem::Version
97
97
  version: '0.30'
98
98
  type: :development
99
99
  prerelease: false
100
100
  version_requirements: !ruby/object:Gem::Requirement
101
101
  requirements:
102
- - - "~>"
102
+ - - '='
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0.30'
105
105
  - !ruby/object:Gem::Dependency
metadata.gz.sig CHANGED
Binary file