Class: Google::Apis::BigqueryV2::QueryTimelineSample

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QueryTimelineSample

Returns a new instance of QueryTimelineSample



2723
2724
2725
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2723

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

Instance Attribute Details

#active_inputsFixnum

Total number of active workers. This does not correspond directly to slot usage. This is the largest value observed since the last sample. Corresponds to the JSON property activeInputs

Returns:

  • (Fixnum)


2701
2702
2703
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2701

def active_inputs
  @active_inputs
end

#completed_inputsFixnum

Total parallel units of work completed by this query. Corresponds to the JSON property completedInputs

Returns:

  • (Fixnum)


2706
2707
2708
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2706

def completed_inputs
  @completed_inputs
end

#elapsed_msFixnum

Milliseconds elapsed since the start of query execution. Corresponds to the JSON property elapsedMs

Returns:

  • (Fixnum)


2711
2712
2713
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2711

def elapsed_ms
  @elapsed_ms
end

#pending_inputsFixnum

Total parallel units of work remaining for the active stages. Corresponds to the JSON property pendingInputs

Returns:

  • (Fixnum)


2716
2717
2718
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2716

def pending_inputs
  @pending_inputs
end

#total_slot_msFixnum

Cumulative slot-ms consumed by the query. Corresponds to the JSON property totalSlotMs

Returns:

  • (Fixnum)


2721
2722
2723
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2721

def total_slot_ms
  @total_slot_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2728
2729
2730
2731
2732
2733
2734
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2728

def update!(**args)
  @active_inputs = args[:active_inputs] if args.key?(:active_inputs)
  @completed_inputs = args[:completed_inputs] if args.key?(:completed_inputs)
  @elapsed_ms = args[:elapsed_ms] if args.key?(:elapsed_ms)
  @pending_inputs = args[:pending_inputs] if args.key?(:pending_inputs)
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
end