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



2186
2187
2188
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2186

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)


2139
2140
2141
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2139

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)


2145
2146
2147
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2145

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)


2151
2152
2153
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2151

def end_time
  @end_time
end

#extractGoogle::Apis::BigqueryV2::JobStatistics4

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



2156
2157
2158
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2156

def extract
  @extract
end

#loadGoogle::Apis::BigqueryV2::JobStatistics3

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



2161
2162
2163
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2161

def load
  @load
end

#queryGoogle::Apis::BigqueryV2::JobStatistics2

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



2166
2167
2168
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2166

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


2171
2172
2173
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2171

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


2178
2179
2180
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2178

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)


2184
2185
2186
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2184

def total_bytes_processed
  @total_bytes_processed
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2191
2192
2193
2194
2195
2196
2197
2198
2199
2200
2201
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2191

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)
  @quota_deferments = args[:quota_deferments] if args.key?(:quota_deferments)
  @start_time = args[:start_time] if args.key?(:start_time)
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
end