Class: Groonga::GrntestLog::JobSummaryEvent

Inherits:
Object
  • Object
show all
Defined in:
lib/groonga/grntest-log.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(summary) ⇒ JobSummaryEvent

Returns a new instance of JobSummaryEvent.



142
143
144
145
146
147
148
149
150
# File 'lib/groonga/grntest-log.rb', line 142

def initialize(summary)
  @job = summary["job"]
  @total_elapsed_time = summary["total_elapsed_time"] || summary["latency"]
  @job_elapsed_time = summary["job_elapsed_time"] || summary["self"]
  @qps = summary["qps"]
  @min = summary["min"]
  @max = summary["max"]
  @n_queries = summary["n_queries"] || summary["queries"]
end

Instance Attribute Details

#elapsedObject (readonly)

Returns the value of attribute elapsed.



141
142
143
# File 'lib/groonga/grntest-log.rb', line 141

def elapsed
  @elapsed
end

#jobObject (readonly)

Returns the value of attribute job.



141
142
143
# File 'lib/groonga/grntest-log.rb', line 141

def job
  @job
end

#latencyObject (readonly)

Returns the value of attribute latency.



141
142
143
# File 'lib/groonga/grntest-log.rb', line 141

def latency
  @latency
end

#maxObject (readonly)

Returns the value of attribute max.



141
142
143
# File 'lib/groonga/grntest-log.rb', line 141

def max
  @max
end

#minObject (readonly)

Returns the value of attribute min.



141
142
143
# File 'lib/groonga/grntest-log.rb', line 141

def min
  @min
end

#n_queriesObject (readonly)

Returns the value of attribute n_queries.



141
142
143
# File 'lib/groonga/grntest-log.rb', line 141

def n_queries
  @n_queries
end

#qpsObject (readonly)

Returns the value of attribute qps.



141
142
143
# File 'lib/groonga/grntest-log.rb', line 141

def qps
  @qps
end