lib/sensu/server/handle.rb
# Handle an event, providing event data to an event handler.
# This method logs event data and the handler definition at the
# debug log level, then calls the `handler_type_router()`
# method.
#
# @param handler [Hash] definition.
# @param event_data [Object] to pass to an event handler.
# @param event_id [String] event UUID
Handle an event, providing event data to an event handler.
This method logs event data and the handler definition at the
debug log level, then calls the `handler_type_router()`
method.
Handle an event providing event data to an event handler . This method logs event data and the handler definition at the debug log level then calls the ` handler_type_router () ` method .
def handle_event(handler, event_data, event_id)
        definition = handler.is_a?(Hash) ? handler : handler.definition
        @logger.debug("handling event", {
          :event_data => event_data,
          :event => { :id => event_id },
          :handler => definition
        })
        handler_type_router(handler, event_data, event_id)
      end
def handle_event ( handler , event_data , event_id ) definition = handler . is_a? ( Hash ) ? handler : handler . definition @logger . debug ( "handling event" , { :event_data => event_data , :event => { :id => event_id } , :handler => definition } ) handler_type_router ( handler , event_data , event_id ) end
Handle an event, providing event data to an event handler.
Handle an event providing event data to an event handler .
handler
None
event_data
to pass to an event handler.
to pass to an event handler .
event_id
None