Class: GroongaQueryLog::Command::Analyzer::JSONStreamReporter

Inherits:
Reporter
  • Object
show all
Defined in:
lib/groonga-query-log/command/analyzer/reporter/json-stream.rb

Instance Attribute Summary

Attributes inherited from Reporter

#output, #slow_operation_threshold, #slow_response_threshold

Instance Method Summary collapse

Methods inherited from Reporter

#each, #initialize, #report, #report_statistics

Constructor Details

This class inherits a constructor from GroongaQueryLog::Command::Analyzer::Reporter

Instance Method Details

#finishObject



33
34
# File 'lib/groonga-query-log/command/analyzer/reporter/json-stream.rb', line 33

def finish
end

#report_statistic(statistic) ⇒ Object



23
24
25
26
27
# File 'lib/groonga-query-log/command/analyzer/reporter/json-stream.rb', line 23

def report_statistic(statistic)
  write(format_statistic(statistic))
  write("\n")
  @index += 1
end

#report_summaryObject



36
37
38
# File 'lib/groonga-query-log/command/analyzer/reporter/json-stream.rb', line 36

def report_summary
  # TODO
end

#startObject



29
30
31
# File 'lib/groonga-query-log/command/analyzer/reporter/json-stream.rb', line 29

def start
  @index = 0
end