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

Constructor Details

#initialize(**args) ⇒ JobStatistics2

Returns a new instance of JobStatistics2.



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

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)


3761
3762
3763
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3761

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)


3766
3767
3768
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3766

def cache_hit
  @cache_hit
end

#ddl_affected_row_access_policy_countFixnum

[Output-only] [Preview] The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries. Corresponds to the JSON property ddlAffectedRowAccessPolicyCount

Returns:

  • (Fixnum)


3773
3774
3775
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3773

def ddl_affected_row_access_policy_count
  @ddl_affected_row_access_policy_count
end

#ddl_operation_performedString

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)


3784
3785
3786
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3784

def ddl_operation_performed
  @ddl_operation_performed
end

#ddl_target_routineGoogle::Apis::BigqueryV2::RoutineReference

The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries. Corresponds to the JSON property ddlTargetRoutine



3790
3791
3792
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3790

def ddl_target_routine
  @ddl_target_routine
end

#ddl_target_row_access_policyGoogle::Apis::BigqueryV2::RowAccessPolicyReference

[Output-only] [Preview] The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries. Corresponds to the JSON property ddlTargetRowAccessPolicy



3796
3797
3798
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3796

def ddl_target_row_access_policy
  @ddl_target_row_access_policy
end

#ddl_target_tableGoogle::Apis::BigqueryV2::TableReference

[Output-only] The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries. Corresponds to the JSON property ddlTargetTable



3802
3803
3804
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3802

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)


3807
3808
3809
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3807

def estimated_bytes_processed
  @estimated_bytes_processed
end

#model_trainingGoogle::Apis::BigqueryV2::BigQueryModelTraining

[Output-only, Beta] Information about create model query job progress. Corresponds to the JSON property modelTraining



3812
3813
3814
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3812

def model_training
  @model_training
end

#model_training_current_iterationFixnum

[Output-only, Beta] Deprecated; do not use. Corresponds to the JSON property modelTrainingCurrentIteration

Returns:

  • (Fixnum)


3817
3818
3819
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3817

def model_training_current_iteration
  @model_training_current_iteration
end

#model_training_expected_total_iterationFixnum

[Output-only, Beta] Deprecated; do not use. Corresponds to the JSON property modelTrainingExpectedTotalIteration

Returns:

  • (Fixnum)


3822
3823
3824
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3822

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)


3828
3829
3830
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3828

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



3833
3834
3835
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3833

def query_plan
  @query_plan
end

#referenced_routinesArray<Google::Apis::BigqueryV2::RoutineReference>

[Output-only] Referenced routines (persistent user-defined functions and stored procedures) for the job. Corresponds to the JSON property referencedRoutines



3839
3840
3841
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3839

def referenced_routines
  @referenced_routines
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



3845
3846
3847
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3845

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



3850
3851
3852
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3850

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



3856
3857
3858
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3856

def schema
  @schema
end

#statement_typeString

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. " ALTER_TABLE": ALTER TABLE query. "ALTER_VIEW": ALTER VIEW query. "ASSERT": ASSERT condition AS 'description'. "CREATE_FUNCTION": CREATE FUNCTION query. " CREATE_MODEL": CREATE [OR REPLACE] MODEL ... AS SELECT ... . "CREATE_PROCEDURE" : CREATE PROCEDURE query. "CREATE_TABLE": CREATE [OR REPLACE] TABLE without AS SELECT. "CREATE_TABLE_AS_SELECT": CREATE [OR REPLACE] TABLE ... AS SELECT ... . "CREATE_VIEW": CREATE [OR REPLACE] VIEW ... AS SELECT ... . "DROP_FUNCTION" : DROP FUNCTION query. "DROP_PROCEDURE": DROP PROCEDURE query. "DROP_TABLE": DROP TABLE query. "DROP_VIEW": DROP VIEW query. Corresponds to the JSON property statementType

Returns:

  • (String)


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

def statement_type
  @statement_type
end

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

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



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

def timeline
  @timeline
end

#total_bytes_billedFixnum

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

Returns:

  • (Fixnum)


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

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)


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

def total_bytes_processed
  @total_bytes_processed
end

#total_bytes_processed_accuracyString

[Output-only] For dry-run jobs, totalBytesProcessed is an estimate and this field specifies the accuracy of the estimate. Possible values can be: UNKNOWN: accuracy of the estimate is unknown. PRECISE: estimate is precise. LOWER_BOUND: estimate is lower bound of what the query would cost. UPPER_BOUND: estimate is upper bound of what the query would cost. Corresponds to the JSON property totalBytesProcessedAccuracy

Returns:

  • (String)


3900
3901
3902
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3900

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


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

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)


3911
3912
3913
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3911

def total_slot_ms
  @total_slot_ms
end

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

Standard SQL only: list of undeclared query parameters detected during a dry run validation. Corresponds to the JSON property undeclaredQueryParameters



3917
3918
3919
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3917

def undeclared_query_parameters
  @undeclared_query_parameters
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3924
3925
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949
3950
# File 'generated/google/apis/bigquery_v2/classes.rb', line 3924

def update!(**args)
  @billing_tier = args[:billing_tier] if args.key?(:billing_tier)
  @cache_hit = args[:cache_hit] if args.key?(:cache_hit)
  @ddl_affected_row_access_policy_count = args[:ddl_affected_row_access_policy_count] if args.key?(:ddl_affected_row_access_policy_count)
  @ddl_operation_performed = args[:ddl_operation_performed] if args.key?(:ddl_operation_performed)
  @ddl_target_routine = args[:ddl_target_routine] if args.key?(:ddl_target_routine)
  @ddl_target_row_access_policy = args[:ddl_target_row_access_policy] if args.key?(:ddl_target_row_access_policy)
  @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 = args[:model_training] if args.key?(:model_training)
  @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_routines = args[:referenced_routines] if args.key?(:referenced_routines)
  @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_bytes_processed_accuracy = args[:total_bytes_processed_accuracy] if args.key?(:total_bytes_processed_accuracy)
  @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