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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dcca7038363d7827afb4d990c7087948a45df499
4
- data.tar.gz: 2c5980e8ebec582da43cd9ae33f5d15e54b9c304
3
+ metadata.gz: 02d86ba877e60c00e627acfbfa4360df4cb45e7c
4
+ data.tar.gz: df730a2e83f6a878252acad15aced4c57bf0aae4
5
5
  SHA512:
6
- metadata.gz: af180c57d701b4b2516f060540f51a1bb114f937cc8dc2c93eb214dfe1f6538e35165db8d47b982d78d0faf607dd3afa2514961cd4a9c5e03b8aa0fb224a7fb6
7
- data.tar.gz: c13e7b443820ac2012c9350316aea87a042155da7d79ecbc10b8fee1262bba4091de871dfd2cf4cfe0f23567200261b8bfd56188f54db585dce183ecc10536c2
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
- events << hash unless hash[:miss]
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 = {})
@@ -1,3 +1,3 @@
1
1
  module Kurchatov
2
- VERSION = "0.0.4c"
2
+ VERSION = "0.0.4d"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kurchatov
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4c
4
+ version: 0.0.4d
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vasiliev Dmitry