kurchatov 0.0.4c → 0.0.4d
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 +4 -4
- data/lib/kurchatov/mixin/event.rb +4 -2
- data/lib/kurchatov/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 02d86ba877e60c00e627acfbfa4360df4cb45e7c
|
|
4
|
+
data.tar.gz: df730a2e83f6a878252acad15aced4c57bf0aae4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1dad24674ec4cfbb3193b045046a74fa14d761ac50e938cbf9a3d39b73e2dfdf78621b96fe8efcab4989d4632950b5fa39ae27046802304721ff72624c54aca2
|
|
7
|
+
data.tar.gz: 6a692e6036b15605ad75cdded526ec36ce7a57a3bf8ab8d16cc1b4402273fdb65317583867e38e61697456c1f2ab0a980546a450487fa5a05a4973e2ad171bbf
|
|
@@ -8,9 +8,9 @@ module Kurchatov
|
|
|
8
8
|
]
|
|
9
9
|
|
|
10
10
|
def event(hash = {})
|
|
11
|
-
normilize_event(hash)
|
|
12
11
|
Log.info("Mock message for test plugin: #{hash.inspect}") if Kurchatov::Config[:test_plugin]
|
|
13
|
-
|
|
12
|
+
return unless normilize_event(hash)
|
|
13
|
+
events << hash
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
protected
|
|
@@ -23,10 +23,12 @@ module Kurchatov
|
|
|
23
23
|
end
|
|
24
24
|
set_diff_metric(hash)
|
|
25
25
|
set_event_state(hash)
|
|
26
|
+
return false if hash[:miss]
|
|
26
27
|
hash.each {|k,_| hash.delete(k) unless EVENT_FIELDS.include?(k)}
|
|
27
28
|
hash[:service] ||= name
|
|
28
29
|
hash[:tags] ||= Kurchatov::Config[:tags]
|
|
29
30
|
hash[:host] ||= Kurchatov::Config[:host]
|
|
31
|
+
true
|
|
30
32
|
end
|
|
31
33
|
|
|
32
34
|
def set_event_state(hash = {})
|
data/lib/kurchatov/version.rb
CHANGED