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.
244 245 246 |
# File 'lib/couchbase/query_options.rb', line 244 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.
219 220 221 |
# File 'lib/couchbase/query_options.rb', line 219 def elapsed_time @elapsed_time end |
#error_count ⇒ Integer
Returns The number of errors that occurred during the request.
238 239 240 |
# File 'lib/couchbase/query_options.rb', line 238 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.
223 224 225 |
# File 'lib/couchbase/query_options.rb', line 223 def execution_time @execution_time end |
#mutation_count ⇒ Integer
Returns The number of mutations that were made during the request.
235 236 237 |
# File 'lib/couchbase/query_options.rb', line 235 def mutation_count @mutation_count end |
#result_count ⇒ Integer
Returns The total number of objects in the results.
229 230 231 |
# File 'lib/couchbase/query_options.rb', line 229 def result_count @result_count end |
#result_size ⇒ Integer
Returns The total number of bytes in the results.
232 233 234 |
# File 'lib/couchbase/query_options.rb', line 232 def result_size @result_size end |
#sort_count ⇒ Integer
Returns the total number of results selected by the engine before restriction through LIMIT clause.
226 227 228 |
# File 'lib/couchbase/query_options.rb', line 226 def sort_count @sort_count end |
#warning_count ⇒ Integer
Returns The number of warnings that occurred during the request.
241 242 243 |
# File 'lib/couchbase/query_options.rb', line 241 def warning_count @warning_count end |