sensu 0.17.1-java → 0.17.2-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/sensu/constants.rb +1 -1
- data/lib/sensu/server/filter.rb +13 -8
- 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: 522c29de590fd364e34192fd4094e14c2b5b6e9c
|
4
|
+
data.tar.gz: b3288099fa21bb8ecaaa2ee8ce3e2d499b66fda7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41de9b5dd4f14b50b9dcefe87f2519922852a357465dcf472953dac22ca40c156fa999e93832c69c7092146a919040e3956714e57374b071de49e7969f255977
|
7
|
+
data.tar.gz: 26331f426dfe948a9a2a8b92b8afbf9bf2db305fa1eb21f00259287193264117df0c015762f9a20bfc20cd0dece3e7f506463e03e0003a3edacb415a02d4b197
|
data/CHANGELOG.md
CHANGED
data/lib/sensu/constants.rb
CHANGED
data/lib/sensu/server/filter.rb
CHANGED
@@ -285,14 +285,19 @@ module Sensu
|
|
285
285
|
# @param callback [Proc]
|
286
286
|
def filter_event(handler, event, &callback)
|
287
287
|
details = {:handler => handler, :event => event}
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
288
|
+
filter_message = case
|
289
|
+
when handling_disabled?(event)
|
290
|
+
"event handling disabled for event"
|
291
|
+
when !handle_action?(handler, event)
|
292
|
+
"handler does not handle action"
|
293
|
+
when !handle_severity?(handler, event)
|
294
|
+
"handler does not handle event severity"
|
295
|
+
when handler_subdued?(handler, event)
|
296
|
+
"handler is subdued"
|
297
|
+
end
|
298
|
+
if filter_message
|
299
|
+
@logger.info(filter_message, details)
|
300
|
+
@handling_event_count -= 1 if @handling_event_count
|
296
301
|
else
|
297
302
|
event_filtered?(handler, event) do |filtered|
|
298
303
|
unless filtered
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sensu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.17.
|
4
|
+
version: 0.17.2
|
5
5
|
platform: java
|
6
6
|
authors:
|
7
7
|
- Sean Porter
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-04-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_json
|