Class: Google::Apis::DatastoreV1::ExecutionStats

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/datastore_v1/classes.rb,
lib/google/apis/datastore_v1/representations.rb,
lib/google/apis/datastore_v1/representations.rb

Overview

Execution statistics for the query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ExecutionStats

Returns a new instance of ExecutionStats.



573
574
575
# File 'lib/google/apis/datastore_v1/classes.rb', line 573

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#debug_statsHash<String,Object>

Debugging statistics from the execution of the query. Note that the debugging stats are subject to change as Firestore evolves. It could include: " indexes_entries_scanned": "1000", "documents_scanned": "20", "billing_details" : "documents_billable": "20", "index_entries_billable": "1000", " min_query_cost": "0" Corresponds to the JSON property debugStats

Returns:

  • (Hash<String,Object>)


555
556
557
# File 'lib/google/apis/datastore_v1/classes.rb', line 555

def debug_stats
  @debug_stats
end

#execution_durationString

Total time to execute the query in the backend. Corresponds to the JSON property executionDuration

Returns:

  • (String)


560
561
562
# File 'lib/google/apis/datastore_v1/classes.rb', line 560

def execution_duration
  @execution_duration
end

#read_operationsFixnum

Total billable read operations. Corresponds to the JSON property readOperations

Returns:

  • (Fixnum)


565
566
567
# File 'lib/google/apis/datastore_v1/classes.rb', line 565

def read_operations
  @read_operations
end

#results_returnedFixnum

Total number of results returned, including documents, projections, aggregation results, keys. Corresponds to the JSON property resultsReturned

Returns:

  • (Fixnum)


571
572
573
# File 'lib/google/apis/datastore_v1/classes.rb', line 571

def results_returned
  @results_returned
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



578
579
580
581
582
583
# File 'lib/google/apis/datastore_v1/classes.rb', line 578

def update!(**args)
  @debug_stats = args[:debug_stats] if args.key?(:debug_stats)
  @execution_duration = args[:execution_duration] if args.key?(:execution_duration)
  @read_operations = args[:read_operations] if args.key?(:read_operations)
  @results_returned = args[:results_returned] if args.key?(:results_returned)
end