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



1971
1972
1973
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1971

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

Instance Attribute Details

#completion_ratioFloat

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

Returns:

  • (Float)


1929
1930
1931
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1929

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)


1935
1936
1937
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1935

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)


1941
1942
1943
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1941

def end_time
  @end_time
end

#extractGoogle::Apis::BigqueryV2::JobStatistics4

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



1946
1947
1948
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1946

def extract
  @extract
end

#loadGoogle::Apis::BigqueryV2::JobStatistics3

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



1951
1952
1953
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1951

def load
  @load
end

#queryGoogle::Apis::BigqueryV2::JobStatistics2

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



1956
1957
1958
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1956

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


1963
1964
1965
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1963

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)


1969
1970
1971
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1969

def total_bytes_processed
  @total_bytes_processed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1976
1977
1978
1979
1980
1981
1982
1983
1984
1985
# File 'generated/google/apis/bigquery_v2/classes.rb', line 1976

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