Class: Groonga::GrntestLog::JobSummaryEvent
- Inherits:
-
Object
- Object
- Groonga::GrntestLog::JobSummaryEvent
- Defined in:
- lib/groonga/grntest-log.rb
Instance Attribute Summary collapse
-
#elapsed ⇒ Object
readonly
Returns the value of attribute elapsed.
-
#job ⇒ Object
readonly
Returns the value of attribute job.
-
#latency ⇒ Object
readonly
Returns the value of attribute latency.
-
#max ⇒ Object
readonly
Returns the value of attribute max.
-
#min ⇒ Object
readonly
Returns the value of attribute min.
-
#n_queries ⇒ Object
readonly
Returns the value of attribute n_queries.
-
#qps ⇒ Object
readonly
Returns the value of attribute qps.
Instance Method Summary collapse
-
#initialize(summary) ⇒ JobSummaryEvent
constructor
A new instance of JobSummaryEvent.
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
#elapsed ⇒ Object (readonly)
Returns the value of attribute elapsed.
141 142 143 |
# File 'lib/groonga/grntest-log.rb', line 141 def elapsed @elapsed end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
141 142 143 |
# File 'lib/groonga/grntest-log.rb', line 141 def job @job end |
#latency ⇒ Object (readonly)
Returns the value of attribute latency.
141 142 143 |
# File 'lib/groonga/grntest-log.rb', line 141 def latency @latency end |
#max ⇒ Object (readonly)
Returns the value of attribute max.
141 142 143 |
# File 'lib/groonga/grntest-log.rb', line 141 def max @max end |
#min ⇒ Object (readonly)
Returns the value of attribute min.
141 142 143 |
# File 'lib/groonga/grntest-log.rb', line 141 def min @min end |
#n_queries ⇒ Object (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 |
#qps ⇒ Object (readonly)
Returns the value of attribute qps.
141 142 143 |
# File 'lib/groonga/grntest-log.rb', line 141 def qps @qps end |