Class: Couchbase::Cluster::QueryMetrics

Inherits:
Object
  • Object
show all
Defined in:
lib/couchbase/query_options.rb,
/code/couchbase-ruby-client/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:



103
104
105
# File 'lib/couchbase/query_options.rb', line 103

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.



78
79
80
# File 'lib/couchbase/query_options.rb', line 78

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.



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

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



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

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.



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

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.



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

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.



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

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.



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

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.



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

def warning_count
  @warning_count
end