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

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



1771
1772
1773
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1771

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

Instance Attribute Details

#creation_timeString

[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:

  • (String)


1735
1736
1737
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1735

def creation_time
  @creation_time
end

#end_timeString

[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:

  • (String)


1741
1742
1743
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1741

def end_time
  @end_time
end

#extractGoogle::Apis::BigqueryV2::JobStatistics4

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



1746
1747
1748
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1746

def extract
  @extract
end

#loadGoogle::Apis::BigqueryV2::JobStatistics3

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



1751
1752
1753
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1751

def load
  @load
end

#queryGoogle::Apis::BigqueryV2::JobStatistics2

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



1756
1757
1758
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1756

def query
  @query
end

#start_timeString

[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:

  • (String)


1763
1764
1765
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1763

def start_time
  @start_time
end

#total_bytes_processedString

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

Returns:

  • (String)


1769
1770
1771
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1769

def total_bytes_processed
  @total_bytes_processed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1776
1777
1778
1779
1780
1781
1782
1783
1784
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1776

def update!(**args)
  @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)
  @query = args[:query] if args.key?(:query)
  @start_time = args[:start_time] if args.key?(:start_time)
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
end