module Sensu
  module Extension
    class Debug < Handler
      def name
        'debug'
      end

      def description
        'outputs json event data'
      end

      def run(event, settings, &block)
        block.call(Oj.dump(event), 0)
      end
    end
  end
end
