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 +4 -4
- data/bin/send-message.rb +5 -1
- data/lib/vaimo-messages-handler/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2a3988af5b3d9bade663a20202cbba4a028f4ce9
|
4
|
+
data.tar.gz: 5ad9d5399205a4ed5da2d6d65a162c788bf68593
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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)
|
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.
|
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-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sensu-plugin
|