Class: Couchbase::Cluster::QueryMetrics

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/query_options.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize {|self| ... } ⇒ QueryMetrics

Returns a new instance of QueryMetrics.

Yield Parameters:



101
102
103
# File 'lib/couchbase/query_options.rb', line 101

def initialize
  yield self if block_given?
end

Instance Attribute Details

#elapsed_timeInteger

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.

Returns:

  • (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.



76
77
78
# File 'lib/couchbase/query_options.rb', line 76

def elapsed_time
  @elapsed_time
end

#error_countInteger

Returns The number of errors that occurred during the request.

Returns:

  • (Integer)

    The number of errors that occurred during the request.



95
96
97
# File 'lib/couchbase/query_options.rb', line 95

def error_count
  @error_count
end

#execution_timeInteger

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.

Returns:

  • (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



80
81
82
# File 'lib/couchbase/query_options.rb', line 80

def execution_time
  @execution_time
end

#mutation_countInteger

Returns The number of mutations that were made during the request.

Returns:

  • (Integer)

    The number of mutations that were made during the request.



92
93
94
# File 'lib/couchbase/query_options.rb', line 92

def mutation_count
  @mutation_count
end

#result_countInteger

Returns The total number of objects in the results.

Returns:

  • (Integer)

    The total number of objects in the results.



86
87
88
# File 'lib/couchbase/query_options.rb', line 86

def result_count
  @result_count
end

#result_sizeInteger

Returns The total number of bytes in the results.

Returns:

  • (Integer)

    The total number of bytes in the results.



89
90
91
# File 'lib/couchbase/query_options.rb', line 89

def result_size
  @result_size
end

#sort_countInteger

Returns the total number of results selected by the engine before restriction through LIMIT clause.

Returns:

  • (Integer)

    the total number of results selected by the engine before restriction through LIMIT clause.



83
84
85
# File 'lib/couchbase/query_options.rb', line 83

def sort_count
  @sort_count
end

#warning_countInteger

Returns The number of warnings that occurred during the request.

Returns:

  • (Integer)

    The number of warnings that occurred during the request.



98
99
100
# File 'lib/couchbase/query_options.rb', line 98

def warning_count
  @warning_count
end