lib/sensu/server/handle.rb
def handler_type_router(handler, event_data, event_id)
        case handler[:type]
        when "pipe"
          pipe_handler(handler, event_data, event_id)
        when "tcp"
          tcp_handler(handler, event_data, event_id)
        when "udp"
          udp_handler(handler, event_data, event_id)
        when "transport"
          transport_handler(handler, event_data, event_id)
        when "extension"
          handler_extension(handler, event_data, event_id)
        end
      end
# Route the event data to the appropriate handler type method.
# Routing is done using the handler definition, `:type`.
#
# @param handler [Hash] definition.
# @param event_data [Object] to pass to the handler type method.
# @param event_id [String] event UUID
Route the event data to the appropriate handler type method.
Routing is done using the handler definition, `:type`.
Route the event data to the appropriate handler type method . Routing is done using the handler definition ` : type ` .
def handler_type_router(handler, event_data, event_id)
        case handler[:type]
        when "pipe"
          pipe_handler(handler, event_data, event_id)
        when "tcp"
          tcp_handler(handler, event_data, event_id)
        when "udp"
          udp_handler(handler, event_data, event_id)
        when "transport"
          transport_handler(handler, event_data, event_id)
        when "extension"
          handler_extension(handler, event_data, event_id)
        end
      end
def handler_type_router ( handler , event_data , event_id ) case handler [ :type ] when "pipe" pipe_handler ( handler , event_data , event_id ) when "tcp" tcp_handler ( handler , event_data , event_id ) when "udp" udp_handler ( handler , event_data , event_id ) when "transport" transport_handler ( handler , event_data , event_id ) when "extension" handler_extension ( handler , event_data , event_id ) end end
Route the event data to the appropriate handler type method.
Route the event data to the appropriate handler type method .
handler
None
event_data
to pass to the handler type method.
to pass to the handler type method .
event_id
None