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

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

Defined Under Namespace

Classes: ReservationUsage

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ JobStatistics

Returns a new instance of JobStatistics.



3955
3956
3957
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3955

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)


3859
3860
3861
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3859

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)


3865
3866
3867
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3865

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)


3871
3872
3873
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3871

def end_time
  @end_time
end

#extractGoogle::Apis::BigqueryV2::JobStatistics4

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



3876
3877
3878
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3876

def extract
  @extract
end

#loadGoogle::Apis::BigqueryV2::JobStatistics3

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



3881
3882
3883
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3881

def load
  @load
end

#num_child_jobsFixnum

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

Returns:

  • (Fixnum)


3886
3887
3888
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3886

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)


3891
3892
3893
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3891

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



3896
3897
3898
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3896

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


3901
3902
3903
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3901

def quota_deferments
  @quota_deferments
end

#reservation_idString

[Output-only] Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job. Corresponds to the JSON property reservation_id

Returns:

  • (String)


3913
3914
3915
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3913

def reservation_id
  @reservation_id
end

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

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



3906
3907
3908
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3906

def reservation_usage
  @reservation_usage
end

#row_level_security_statisticsGoogle::Apis::BigqueryV2::RowLevelSecurityStatistics

[Output-only] [Preview] Statistics for row-level security. Present only for query and extract jobs. Corresponds to the JSON property rowLevelSecurityStatistics



3919
3920
3921
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3919

def row_level_security_statistics
  @row_level_security_statistics
end

#script_statisticsGoogle::Apis::BigqueryV2::ScriptStatistics

[Output-only] Statistics for a child job of a script. Corresponds to the JSON property scriptStatistics



3924
3925
3926
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3924

def script_statistics
  @script_statistics
end

#session_infoGoogle::Apis::BigqueryV2::SessionInfo

[Output-only] [Preview] Information of the session if this job is part of one. Corresponds to the JSON property sessionInfo



3929
3930
3931
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3929

def session_info
  @session_info
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)


3936
3937
3938
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3936

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)


3942
3943
3944
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3942

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)


3947
3948
3949
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3947

def total_slot_ms
  @total_slot_ms
end

#transaction_infoGoogle::Apis::BigqueryV2::TransactionInfo

[Output-only] [Alpha] Information of the multi-statement transaction if this job is part of one. Corresponds to the JSON property transactionInfo



3953
3954
3955
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3953

def transaction_info
  @transaction_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3960
3961
3962
3963
3964
3965
3966
3967
3968
3969
3970
3971
3972
3973
3974
3975
3976
3977
3978
3979
# File 'lib/google/apis/bigquery_v2/classes.rb', line 3960

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)
  @reservation_id = args[:reservation_id] if args.key?(:reservation_id)
  @row_level_security_statistics = args[:row_level_security_statistics] if args.key?(:row_level_security_statistics)
  @script_statistics = args[:script_statistics] if args.key?(:script_statistics)
  @session_info = args[:session_info] if args.key?(:session_info)
  @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)
  @transaction_info = args[:transaction_info] if args.key?(:transaction_info)
end