Class: Groonga::QueryLog::Analyzer::JSONStreamReporter

Inherits:
Reporter
  • Object
show all
Defined in:
lib/groonga/query-log/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

#apply_options, #each, #initialize, #report, #report_statistics

Constructor Details

This class inherits a constructor from Groonga::QueryLog::Analyzer::Reporter

Instance Method Details

#finishObject



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

def finish
end

#report_statistic(statistic) ⇒ Object



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

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

#report_summaryObject



38
39
40
# File 'lib/groonga/query-log/analyzer/reporter/json-stream.rb', line 38

def report_summary
  # TODO
end

#startObject



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

def start
  @index = 0
end