Class: Google::Apis::BigqueryV2::JobStatistics

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

Defined Under Namespace

Classes: ReservationUsage

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) ⇒ JobStatistics

Returns a new instance of JobStatistics



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

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

Instance Attribute Details

#completion_ratioFloat

[TrustedTester] [Output-only] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs. Corresponds to the JSON property completionRatio

Returns:

  • (Float)


2648
2649
2650
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2648

def completion_ratio
  @completion_ratio
end

#creation_timeFixnum

[Output-only] Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs. Corresponds to the JSON property creationTime

Returns:

  • (Fixnum)


2654
2655
2656
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2654

def creation_time
  @creation_time
end

#end_timeFixnum

[Output-only] End time of this job, in milliseconds since the epoch. This field will be present whenever a job is in the DONE state. Corresponds to the JSON property endTime

Returns:

  • (Fixnum)


2660
2661
2662
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2660

def end_time
  @end_time
end

#extractGoogle::Apis::BigqueryV2::JobStatistics4

[Output-only] Statistics for an extract job. Corresponds to the JSON property extract



2665
2666
2667
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2665

def extract
  @extract
end

#loadGoogle::Apis::BigqueryV2::JobStatistics3

[Output-only] Statistics for a load job. Corresponds to the JSON property load



2670
2671
2672
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2670

def load
  @load
end

#num_child_jobsFixnum

[Output-only] Number of child jobs executed. Corresponds to the JSON property numChildJobs

Returns:

  • (Fixnum)


2675
2676
2677
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2675

def num_child_jobs
  @num_child_jobs
end

#parent_job_idString

[Output-only] If this is a child job, the id of the parent. Corresponds to the JSON property parentJobId

Returns:

  • (String)


2680
2681
2682
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2680

def parent_job_id
  @parent_job_id
end

#queryGoogle::Apis::BigqueryV2::JobStatistics2

[Output-only] Statistics for a query job. Corresponds to the JSON property query



2685
2686
2687
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2685

def query
  @query
end

#quota_defermentsArray<String>

[Output-only] Quotas which delayed this job's start time. Corresponds to the JSON property quotaDeferments

Returns:

  • (Array<String>)


2690
2691
2692
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2690

def quota_deferments
  @quota_deferments
end

#reservation_usageArray<Google::Apis::BigqueryV2::JobStatistics::ReservationUsage>

[Output-only] Job resource usage breakdown by reservation. Corresponds to the JSON property reservationUsage



2695
2696
2697
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2695

def reservation_usage
  @reservation_usage
end

#start_timeFixnum

[Output-only] Start time of this job, in milliseconds since the epoch. This field will be present when the job transitions from the PENDING state to either RUNNING or DONE. Corresponds to the JSON property startTime

Returns:

  • (Fixnum)


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

def start_time
  @start_time
end

#total_bytes_processedFixnum

[Output-only] [Deprecated] Use the bytes processed in the query statistics instead. Corresponds to the JSON property totalBytesProcessed

Returns:

  • (Fixnum)


2708
2709
2710
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2708

def total_bytes_processed
  @total_bytes_processed
end

#total_slot_msFixnum

[Output-only] Slot-milliseconds for the job. Corresponds to the JSON property totalSlotMs

Returns:

  • (Fixnum)


2713
2714
2715
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2713

def total_slot_ms
  @total_slot_ms
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2720
2721
2722
2723
2724
2725
2726
2727
2728
2729
2730
2731
2732
2733
2734
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2720

def update!(**args)
  @completion_ratio = args[:completion_ratio] if args.key?(:completion_ratio)
  @creation_time = args[:creation_time] if args.key?(:creation_time)
  @end_time = args[:end_time] if args.key?(:end_time)
  @extract = args[:extract] if args.key?(:extract)
  @load = args[:load] if args.key?(:load)
  @num_child_jobs = args[:num_child_jobs] if args.key?(:num_child_jobs)
  @parent_job_id = args[:parent_job_id] if args.key?(:parent_job_id)
  @query = args[:query] if args.key?(:query)
  @quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
  @reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
  @start_time = args[:start_time] if args.key?(:start_time)
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
end