Class: Google::Apis::BigqueryV2::JobStatistics2

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

Returns a new instance of JobStatistics2



2263
2264
2265
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2263

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

Instance Attribute Details

#billing_tierFixnum

[Output-only] Billing tier for the job. Corresponds to the JSON property billingTier

Returns:

  • (Fixnum)


2143
2144
2145
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2143

def billing_tier
  @billing_tier
end

#cache_hitBoolean Also known as: cache_hit?

[Output-only] Whether the query result was fetched from the query cache. Corresponds to the JSON property cacheHit

Returns:

  • (Boolean)


2148
2149
2150
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2148

def cache_hit
  @cache_hit
end

#ddl_operation_performedString

[Output-only, Experimental] The DDL operation performed, possibly dependent on the pre-existence of the DDL target. Possible values (new values might be added in the future): "CREATE": The query created the DDL target. "SKIP": No- op. Example cases: the query is CREATE TABLE IF NOT EXISTS while the table already exists, or the query is DROP TABLE IF EXISTS while the table does not exist. "REPLACE": The query replaced the DDL target. Example case: the query is CREATE OR REPLACE TABLE, and the table already exists. "DROP": The query deleted the DDL target. Corresponds to the JSON property ddlOperationPerformed

Returns:

  • (String)


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

def ddl_operation_performed
  @ddl_operation_performed
end

#ddl_target_tableGoogle::Apis::BigqueryV2::TableReference

[Output-only, Experimental] The DDL target table. Present only for CREATE/DROP TABLE/VIEW queries. Corresponds to the JSON property ddlTargetTable



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

def ddl_target_table
  @ddl_target_table
end

#estimated_bytes_processedFixnum

[Output-only] The original estimate of bytes processed for the job. Corresponds to the JSON property estimatedBytesProcessed

Returns:

  • (Fixnum)


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

def estimated_bytes_processed
  @estimated_bytes_processed
end

#model_training_current_iterationFixnum

[Output-only, Beta] Index of current ML training iteration. Updated during create model query job to show job progress. Corresponds to the JSON property modelTrainingCurrentIteration

Returns:

  • (Fixnum)


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

def model_training_current_iteration
  @model_training_current_iteration
end

#model_training_expected_total_iterationFixnum

[Output-only, Beta] Expected number of iterations for the create model query job specified as num_iterations in the input query. The actual total number of iterations may be less than this number due to early stop. Corresponds to the JSON property modelTrainingExpectedTotalIteration

Returns:

  • (Fixnum)


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

def model_training_expected_total_iteration
  @model_training_expected_total_iteration
end

#num_dml_affected_rowsFixnum

[Output-only] The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE. Corresponds to the JSON property numDmlAffectedRows

Returns:

  • (Fixnum)


2191
2192
2193
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2191

def num_dml_affected_rows
  @num_dml_affected_rows
end

#query_planArray<Google::Apis::BigqueryV2::ExplainQueryStage>

[Output-only] Describes execution plan for the query. Corresponds to the JSON property queryPlan



2196
2197
2198
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2196

def query_plan
  @query_plan
end

#referenced_tablesArray<Google::Apis::BigqueryV2::TableReference>

[Output-only] Referenced tables for the job. Queries that reference more than 50 tables will not have a complete list. Corresponds to the JSON property referencedTables



2202
2203
2204
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2202

def referenced_tables
  @referenced_tables
end

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

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



2207
2208
2209
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2207

def reservation_usage
  @reservation_usage
end

#schemaGoogle::Apis::BigqueryV2::TableSchema

[Output-only] The schema of the results. Present only for successful dry run of non-legacy SQL queries. Corresponds to the JSON property schema



2213
2214
2215
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2213

def schema
  @schema
end

#statement_typeString

[Output-only, Experimental] The type of query statement, if valid. Possible values (new values might be added in the future): "SELECT": SELECT query. " INSERT": INSERT query; see https://cloud.google.com/bigquery/docs/reference/ standard-sql/data-manipulation-language "UPDATE": UPDATE query; see https:// cloud.google.com/bigquery/docs/reference/standard-sql/data-manipulation- language "DELETE": DELETE query; see https://cloud.google.com/bigquery/docs/ reference/standard-sql/data-manipulation-language "MERGE": MERGE query; see https://cloud.google.com/bigquery/docs/reference/standard-sql/data- manipulation-language "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... " DROP_TABLE": DROP TABLE query. "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... "DROP_VIEW": DROP VIEW query. Corresponds to the JSON property statementType

Returns:

  • (String)


2229
2230
2231
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2229

def statement_type
  @statement_type
end

#timelineArray<Google::Apis::BigqueryV2::QueryTimelineSample>

[Output-only] [Experimental] Describes a timeline of job execution. Corresponds to the JSON property timeline



2234
2235
2236
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2234

def timeline
  @timeline
end

#total_bytes_billedFixnum

[Output-only] Total bytes billed for the job. Corresponds to the JSON property totalBytesBilled

Returns:

  • (Fixnum)


2239
2240
2241
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2239

def total_bytes_billed
  @total_bytes_billed
end

#total_bytes_processedFixnum

[Output-only] Total bytes processed for the job. Corresponds to the JSON property totalBytesProcessed

Returns:

  • (Fixnum)


2244
2245
2246
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2244

def total_bytes_processed
  @total_bytes_processed
end

#total_partitions_processedFixnum

[Output-only] Total number of partitions processed from all partitioned tables referenced in the job. Corresponds to the JSON property totalPartitionsProcessed

Returns:

  • (Fixnum)


2250
2251
2252
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2250

def total_partitions_processed
  @total_partitions_processed
end

#total_slot_msFixnum

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

Returns:

  • (Fixnum)


2255
2256
2257
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2255

def total_slot_ms
  @total_slot_ms
end

#undeclared_query_parametersArray<Google::Apis::BigqueryV2::QueryParameter>

[Output-only, Experimental] Standard SQL only: list of undeclared query parameters detected during a dry run validation. Corresponds to the JSON property undeclaredQueryParameters



2261
2262
2263
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2261

def undeclared_query_parameters
  @undeclared_query_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278
2279
2280
2281
2282
2283
2284
2285
2286
2287
2288
# File 'generated/google/apis/bigquery_v2/classes.rb', line 2268

def update!(**args)
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
  @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
  @ddl_target_table = args[:ddl_target_table] if args.key?(:ddl_target_table)
  @estimated_bytes_processed = args[:estimated_bytes_processed] if args.key?(:estimated_bytes_processed)
  @model_training_current_iteration = args[:model_training_current_iteration] if args.key?(:model_training_current_iteration)
  @model_training_expected_total_iteration = args[:model_training_expected_total_iteration] if args.key?(:model_training_expected_total_iteration)
  @num_dml_affected_rows = args[:num_dml_affected_rows] if args.key?(:num_dml_affected_rows)
  @query_plan = args[:query_plan] if args.key?(:query_plan)
  @referenced_tables = args[:referenced_tables] if args.key?(:referenced_tables)
  @reservation_usage = args[:reservation_usage] if args.key?(:reservation_usage)
  @schema = args[:schema] if args.key?(:schema)
  @statement_type = args[:statement_type] if args.key?(:statement_type)
  @timeline = args[:timeline] if args.key?(:timeline)
  @total_bytes_billed = args[:total_bytes_billed] if args.key?(:total_bytes_billed)
  @total_bytes_processed = args[:total_bytes_processed] if args.key?(:total_bytes_processed)
  @total_partitions_processed = args[:total_partitions_processed] if args.key?(:total_partitions_processed)
  @total_slot_ms = args[:total_slot_ms] if args.key?(:total_slot_ms)
  @undeclared_query_parameters = args[:undeclared_query_parameters] if args.key?(:undeclared_query_parameters)
end