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,
  :tsdb_service, :tsdb_tags
]

Instance Method Summary collapse

Methods included from Queue

#events

Instance Method Details

#event(hash = {}) ⇒ Object



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

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