class Google::Apis::BigqueryV2::ExplainQueryStage

Attributes

compute_ratio_avg[RW]

Relative amount of time the average shard spent on CPU-bound tasks. Corresponds to the JSON property `computeRatioAvg` @return [Float]

compute_ratio_max[RW]

Relative amount of time the slowest shard spent on CPU-bound tasks. Corresponds to the JSON property `computeRatioMax` @return [Float]

id[RW]

Unique ID for stage within plan. Corresponds to the JSON property `id` @return [String]

name[RW]

Human-readable name for stage. Corresponds to the JSON property `name` @return [String]

read_ratio_avg[RW]

Relative amount of time the average shard spent reading input. Corresponds to the JSON property `readRatioAvg` @return [Float]

read_ratio_max[RW]

Relative amount of time the slowest shard spent reading input. Corresponds to the JSON property `readRatioMax` @return [Float]

records_read[RW]

Number of records read into the stage. Corresponds to the JSON property `recordsRead` @return [String]

records_written[RW]

Number of records written by the stage. Corresponds to the JSON property `recordsWritten` @return [String]

steps[RW]

List of operations within the stage in dependency order (approximately chronological). Corresponds to the JSON property `steps` @return [Array<Google::Apis::BigqueryV2::ExplainQueryStep>]

wait_ratio_avg[RW]

Relative amount of time the average shard spent waiting to be scheduled. Corresponds to the JSON property `waitRatioAvg` @return [Float]

wait_ratio_max[RW]

Relative amount of time the slowest shard spent waiting to be scheduled. Corresponds to the JSON property `waitRatioMax` @return [Float]

write_ratio_avg[RW]

Relative amount of time the average shard spent on writing output. Corresponds to the JSON property `writeRatioAvg` @return [Float]

write_ratio_max[RW]

Relative amount of time the slowest shard spent on writing output. Corresponds to the JSON property `writeRatioMax` @return [Float]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/bigquery_v2/classes.rb, line 642
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/bigquery_v2/classes.rb, line 647
def update!(**args)
  @compute_ratio_avg = args[:compute_ratio_avg] if args.key?(:compute_ratio_avg)
  @compute_ratio_max = args[:compute_ratio_max] if args.key?(:compute_ratio_max)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @read_ratio_avg = args[:read_ratio_avg] if args.key?(:read_ratio_avg)
  @read_ratio_max = args[:read_ratio_max] if args.key?(:read_ratio_max)
  @records_read = args[:records_read] if args.key?(:records_read)
  @records_written = args[:records_written] if args.key?(:records_written)
  @steps = args[:steps] if args.key?(:steps)
  @wait_ratio_avg = args[:wait_ratio_avg] if args.key?(:wait_ratio_avg)
  @wait_ratio_max = args[:wait_ratio_max] if args.key?(:wait_ratio_max)
  @write_ratio_avg = args[:write_ratio_avg] if args.key?(:write_ratio_avg)
  @write_ratio_max = args[:write_ratio_max] if args.key?(:write_ratio_max)
end