Class: Couchbase::Cluster::QueryMetrics
- Inherits:
-
Object
- Object
- Couchbase::Cluster::QueryMetrics
- Defined in:
- lib/couchbase/query_options.rb,
/Users/sergey.auseyau/code/couchbase-ruby-client/lib/couchbase/query_options.rb more...
Instance Attribute Summary collapse
-
#elapsed_time ⇒ Integer
The total time taken for the request, that is the time from when the request was received until the results were returned.
-
#error_count ⇒ Integer
The number of errors that occurred during the request.
-
#execution_time ⇒ Integer
The time taken for the execution of the request, that is the time from when query execution started until the results were returned.
-
#mutation_count ⇒ Integer
The number of mutations that were made during the request.
-
#result_count ⇒ Integer
The total number of objects in the results.
-
#result_size ⇒ Integer
The total number of bytes in the results.
-
#sort_count ⇒ Integer
The total number of results selected by the engine before restriction through LIMIT clause.
-
#warning_count ⇒ Integer
The number of warnings that occurred during the request.
Instance Method Summary collapse
-
#initialize {|self| ... } ⇒ QueryMetrics
constructor
A new instance of QueryMetrics.
Constructor Details
#initialize {|self| ... } ⇒ QueryMetrics
Returns a new instance of QueryMetrics.
237 238 239 |
# File 'lib/couchbase/query_options.rb', line 237 def initialize yield self if block_given? end |
Instance Attribute Details
#elapsed_time ⇒ Integer
The total time taken for the request, that is the time from when the request was received until the results were returned.
212 213 214 |
# File 'lib/couchbase/query_options.rb', line 212 def elapsed_time @elapsed_time end |
#error_count ⇒ Integer
Returns The number of errors that occurred during the request.
231 232 233 |
# File 'lib/couchbase/query_options.rb', line 231 def error_count @error_count end |
#execution_time ⇒ Integer
Returns The time taken for the execution of the request, that is the time from when query execution started until the results were returned.
216 217 218 |
# File 'lib/couchbase/query_options.rb', line 216 def execution_time @execution_time end |
#mutation_count ⇒ Integer
Returns The number of mutations that were made during the request.
228 229 230 |
# File 'lib/couchbase/query_options.rb', line 228 def mutation_count @mutation_count end |
#result_count ⇒ Integer
Returns The total number of objects in the results.
222 223 224 |
# File 'lib/couchbase/query_options.rb', line 222 def result_count @result_count end |
#result_size ⇒ Integer
Returns The total number of bytes in the results.
225 226 227 |
# File 'lib/couchbase/query_options.rb', line 225 def result_size @result_size end |
#sort_count ⇒ Integer
Returns the total number of results selected by the engine before restriction through LIMIT clause.
219 220 221 |
# File 'lib/couchbase/query_options.rb', line 219 def sort_count @sort_count end |
#warning_count ⇒ Integer
Returns The number of warnings that occurred during the request.
234 235 236 |
# File 'lib/couchbase/query_options.rb', line 234 def warning_count @warning_count end |