Class: Couchbase::Cluster::QueryMetrics
- Inherits:
-
Object
- Object
- Couchbase::Cluster::QueryMetrics
- Defined in:
- lib/couchbase/query_options.rb,
/code/couchbase-ruby-client/lib/couchbase/query_options.rb
Instance Attribute Summary collapse
-
#elapsed_time ⇒ Integer
The total time taken for the request (in nanoseconds), 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 (in nanoseconds), 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.
103 104 105 |
# File 'lib/couchbase/query_options.rb', line 103 def initialize yield self if block_given? end |
Instance Attribute Details
#elapsed_time ⇒ Integer
Returns The total time taken for the request (in nanoseconds), that is the time from when the request was received until the results were returned.
78 79 80 |
# File 'lib/couchbase/query_options.rb', line 78 def elapsed_time @elapsed_time end |
#error_count ⇒ Integer
Returns The number of errors that occurred during the request.
97 98 99 |
# File 'lib/couchbase/query_options.rb', line 97 def error_count @error_count end |
#execution_time ⇒ Integer
Returns The time taken for the execution of the request (in nanoseconds), that is the time from when query execution started until the results were returned.
82 83 84 |
# File 'lib/couchbase/query_options.rb', line 82 def execution_time @execution_time end |
#mutation_count ⇒ Integer
Returns The number of mutations that were made during the request.
94 95 96 |
# File 'lib/couchbase/query_options.rb', line 94 def mutation_count @mutation_count end |
#result_count ⇒ Integer
Returns The total number of objects in the results.
88 89 90 |
# File 'lib/couchbase/query_options.rb', line 88 def result_count @result_count end |
#result_size ⇒ Integer
Returns The total number of bytes in the results.
91 92 93 |
# File 'lib/couchbase/query_options.rb', line 91 def result_size @result_size end |
#sort_count ⇒ Integer
Returns the total number of results selected by the engine before restriction through LIMIT clause.
85 86 87 |
# File 'lib/couchbase/query_options.rb', line 85 def sort_count @sort_count end |
#warning_count ⇒ Integer
Returns The number of warnings that occurred during the request.
100 101 102 |
# File 'lib/couchbase/query_options.rb', line 100 def warning_count @warning_count end |