Module: Kurchatov::Mixin::Event

Includes:
Queue
Included in:
Kurchatov::Monitor::Task, Plugins::Riemann
Defined in:
lib/kurchatov/mixin/event.rb

Constant Summary collapse

EVENT_FIELDS =
[
    :time, :state, :service, :host,
    :description, :tags, :ttl, :metric
]

Instance Method Summary collapse

Methods included from Queue

#events

Instance Method Details

#event(hash = {}) ⇒ Object



12
13
14
15
16
17
# File 'lib/kurchatov/mixin/event.rb', line 12

def event(hash = {})
  @normilize = normalize_event(hash)
  return unless @normilize
  Log.info("Mock message for test plugin: #{hash.inspect}") if Kurchatov::Config[:test_plugin]
  events << hash
end