vaimo-messages-handler 2.1.0 → 2.2.0

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: ba906f05ef44d119a786b34fa9fc6bd9aa3d91d9
4
- data.tar.gz: 9c7aed312061bf153eb984365e56af2394f62619
3
+ metadata.gz: 2a3988af5b3d9bade663a20202cbba4a028f4ce9
4
+ data.tar.gz: 5ad9d5399205a4ed5da2d6d65a162c788bf68593
5
5
  SHA512:
6
- metadata.gz: c98173cc2ee23512394c3914cccbd9e7145fce0ddf8f1596524008e7e30cbdd652e74942a8b347485581851c1546b66edbc84752784d88bf33940c72bcd8b3a5
7
- data.tar.gz: b71c47a70eef479f2bf3c4bf8ba3b959f9772626534f29fd5742480ec3148de3d73e14a4280b940760b38f0cac7bd316da8fe22bcf46ddef407c95e060d7030b
6
+ metadata.gz: 143a3dc5a05ffd07daae9fcdba463642ab865148a7f6ccb1a5cf3f156b5fc56b1fa481d4114aee6b331c961890551ee73dc8adc37c80c451e91d75df0a6eae27
7
+ data.tar.gz: 2e75ca2212c5ff14212bf94d2d62873972c1805eb2e4e186f3765016a19e5d35c0fd2f2e10eb538b9a7e85ae196bd7996f005b4840ef2094265e2c20c4b7d937
data/bin/send-message.rb CHANGED
@@ -79,6 +79,7 @@ def messages_post_args(args, settings)
79
79
  message: messages_key_value(args, :message, nil),
80
80
  component: messages_key_value(args, :component, nil),
81
81
  output: messages_key_value(args, :output, nil),
82
+ history: messages_key_value(args, :history, nil),
82
83
  }
83
84
  end
84
85
 
@@ -103,6 +104,8 @@ def messages_level(status)
103
104
  'warning'
104
105
  when 2
105
106
  'error'
107
+ else
108
+ 'unknown'
106
109
  end
107
110
  end
108
111
 
@@ -138,7 +141,8 @@ begin
138
141
  server: event['client']['name'],
139
142
  component: event['check']['name'],
140
143
  level: messages_level(event['check']['status']),
141
- output: event['check']['output']
144
+ output: event['check']['output'],
145
+ history: event['check']['history'],
142
146
  }
143
147
 
144
148
  post_args = messages_post_args(args, messages_settings)
@@ -1,7 +1,7 @@
1
1
  module VaimoMessages
2
2
  module Version
3
3
  MAJOR = 2
4
- MINOR = 1
4
+ MINOR = 2
5
5
  PATCH = 0
6
6
 
7
7
  VER_STRING = [MAJOR, MINOR, PATCH].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vaimo-messages-handler
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Margus Heinmaa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-09-18 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sensu-plugin