JobStatistics2

Struct JobStatistics2 

Source
pub struct JobStatistics2 {
Show 46 fields pub bi_engine_statistics: Option<BiEngineStatistics>, pub billing_tier: Option<i32>, pub cache_hit: Option<bool>, pub dcl_target_dataset: Option<DatasetReference>, pub dcl_target_table: Option<TableReference>, pub dcl_target_view: Option<TableReference>, pub ddl_affected_row_access_policy_count: Option<i64>, pub ddl_destination_table: Option<TableReference>, pub ddl_operation_performed: Option<String>, pub ddl_target_dataset: Option<DatasetReference>, pub ddl_target_routine: Option<RoutineReference>, pub ddl_target_row_access_policy: Option<RowAccessPolicyReference>, pub ddl_target_table: Option<TableReference>, pub dml_stats: Option<DmlStatistics>, pub estimated_bytes_processed: Option<i64>, pub export_data_statistics: Option<ExportDataStatistics>, pub external_service_costs: Option<Vec<ExternalServiceCost>>, pub incremental_result_stats: Option<IncrementalResultStats>, pub load_query_statistics: Option<LoadQueryStatistics>, pub materialized_view_statistics: Option<MaterializedViewStatistics>, pub metadata_cache_statistics: Option<MetadataCacheStatistics>, pub ml_statistics: Option<MlStatistics>, pub model_training: Option<BigQueryModelTraining>, pub model_training_current_iteration: Option<i32>, pub model_training_expected_total_iteration: Option<i64>, pub num_dml_affected_rows: Option<i64>, pub performance_insights: Option<PerformanceInsights>, pub query_info: Option<QueryInfo>, pub query_plan: Option<Vec<ExplainQueryStage>>, pub referenced_routines: Option<Vec<RoutineReference>>, pub referenced_tables: Option<Vec<TableReference>>, pub reservation_usage: Option<Vec<JobStatistics2ReservationUsage>>, pub schema: Option<TableSchema>, pub search_statistics: Option<SearchStatistics>, pub spark_statistics: Option<SparkStatistics>, pub statement_type: Option<String>, pub timeline: Option<Vec<QueryTimelineSample>>, pub total_bytes_billed: Option<i64>, pub total_bytes_processed: Option<i64>, pub total_bytes_processed_accuracy: Option<String>, pub total_partitions_processed: Option<i64>, pub total_services_sku_slot_ms: Option<i64>, pub total_slot_ms: Option<i64>, pub transferred_bytes: Option<i64>, pub undeclared_query_parameters: Option<Vec<QueryParameter>>, pub vector_search_statistics: Option<VectorSearchStatistics>,
}
Expand description

Statistics for a query job.

This type is not used in any activity, and only used as part of another schema.

Fields§

§bi_engine_statistics: Option<BiEngineStatistics>

Output only. BI Engine specific Statistics.

§billing_tier: Option<i32>

Output only. Billing tier for the job. This is a BigQuery-specific concept which is not related to the Google Cloud notion of “free tier”. The value here is a measure of the query’s resource consumption relative to the amount of data scanned. For on-demand queries, the limit is 100, and all queries within this limit are billed at the standard on-demand rates. On-demand queries that exceed this limit will fail with a billingTierLimitExceeded error.

§cache_hit: Option<bool>

Output only. Whether the query result was fetched from the query cache.

§dcl_target_dataset: Option<DatasetReference>

Output only. Referenced dataset for DCL statement.

§dcl_target_table: Option<TableReference>

Output only. Referenced table for DCL statement.

§dcl_target_view: Option<TableReference>

Output only. Referenced view for DCL statement.

§ddl_affected_row_access_policy_count: Option<i64>

Output only. The number of row access policies affected by a DDL statement. Present only for DROP ALL ROW ACCESS POLICIES queries.

§ddl_destination_table: Option<TableReference>

Output only. The table after rename. Present only for ALTER TABLE RENAME TO query.

§ddl_operation_performed: Option<String>

Output only. The DDL operation performed, possibly dependent on the pre-existence of the DDL target.

§ddl_target_dataset: Option<DatasetReference>

Output only. The DDL target dataset. Present only for CREATE/ALTER/DROP SCHEMA(dataset) queries.

§ddl_target_routine: Option<RoutineReference>

Output only. [Beta] The DDL target routine. Present only for CREATE/DROP FUNCTION/PROCEDURE queries.

§ddl_target_row_access_policy: Option<RowAccessPolicyReference>

Output only. The DDL target row access policy. Present only for CREATE/DROP ROW ACCESS POLICY queries.

§ddl_target_table: Option<TableReference>

Output only. The DDL target table. Present only for CREATE/DROP TABLE/VIEW and DROP ALL ROW ACCESS POLICIES queries.

§dml_stats: Option<DmlStatistics>

Output only. Detailed statistics for DML statements INSERT, UPDATE, DELETE, MERGE or TRUNCATE.

§estimated_bytes_processed: Option<i64>

Output only. The original estimate of bytes processed for the job.

§export_data_statistics: Option<ExportDataStatistics>

Output only. Stats for EXPORT DATA statement.

§external_service_costs: Option<Vec<ExternalServiceCost>>

Output only. Job cost breakdown as bigquery internal cost and external service costs.

§incremental_result_stats: Option<IncrementalResultStats>

Output only. Statistics related to incremental query results, if enabled for the query. This feature is not yet available.

§load_query_statistics: Option<LoadQueryStatistics>

Output only. Statistics for a LOAD query.

§materialized_view_statistics: Option<MaterializedViewStatistics>

Output only. Statistics of materialized views of a query job.

§metadata_cache_statistics: Option<MetadataCacheStatistics>

Output only. Statistics of metadata cache usage in a query for BigLake tables.

§ml_statistics: Option<MlStatistics>

Output only. Statistics of a BigQuery ML training job.

§model_training: Option<BigQueryModelTraining>

Deprecated.

§model_training_current_iteration: Option<i32>

Deprecated.

§model_training_expected_total_iteration: Option<i64>

Deprecated.

§num_dml_affected_rows: Option<i64>

Output only. The number of rows affected by a DML statement. Present only for DML statements INSERT, UPDATE or DELETE.

§performance_insights: Option<PerformanceInsights>

Output only. Performance insights.

§query_info: Option<QueryInfo>

Output only. Query optimization information for a QUERY job.

§query_plan: Option<Vec<ExplainQueryStage>>

Output only. Describes execution plan for the query.

§referenced_routines: Option<Vec<RoutineReference>>

Output only. Referenced routines for the job.

§referenced_tables: Option<Vec<TableReference>>

Output only. Referenced tables for the job.

§reservation_usage: Option<Vec<JobStatistics2ReservationUsage>>

Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated.

§schema: Option<TableSchema>

Output only. The schema of the results. Present only for successful dry run of non-legacy SQL queries.

§search_statistics: Option<SearchStatistics>

Output only. Search query specific statistics.

§spark_statistics: Option<SparkStatistics>

Output only. Statistics of a Spark procedure job.

§statement_type: Option<String>

Output only. The type of query statement, if valid. Possible values: * SELECT: SELECT statement. * ASSERT: ASSERT statement. * INSERT: INSERT statement. * UPDATE: UPDATE statement. * DELETE: DELETE statement. * MERGE: MERGE statement. * CREATE_TABLE: CREATE TABLE statement, without AS SELECT. * CREATE_TABLE_AS_SELECT: CREATE TABLE AS SELECT statement. * CREATE_VIEW: CREATE VIEW statement. * CREATE_MODEL: CREATE MODEL statement. * CREATE_MATERIALIZED_VIEW: CREATE MATERIALIZED VIEW statement. * CREATE_FUNCTION: CREATE FUNCTION statement. * CREATE_TABLE_FUNCTION: CREATE TABLE FUNCTION statement. * CREATE_PROCEDURE: CREATE PROCEDURE statement. * CREATE_ROW_ACCESS_POLICY: CREATE ROW ACCESS POLICY statement. * CREATE_SCHEMA: CREATE SCHEMA statement. * CREATE_SNAPSHOT_TABLE: CREATE SNAPSHOT TABLE statement. * CREATE_SEARCH_INDEX: CREATE SEARCH INDEX statement. * DROP_TABLE: DROP TABLE statement. * DROP_EXTERNAL_TABLE: DROP EXTERNAL TABLE statement. * DROP_VIEW: DROP VIEW statement. * DROP_MODEL: DROP MODEL statement. * DROP_MATERIALIZED_VIEW: DROP MATERIALIZED VIEW statement. * DROP_FUNCTION : DROP FUNCTION statement. * DROP_TABLE_FUNCTION : DROP TABLE FUNCTION statement. * DROP_PROCEDURE: DROP PROCEDURE statement. * DROP_SEARCH_INDEX: DROP SEARCH INDEX statement. * DROP_SCHEMA: DROP SCHEMA statement. * DROP_SNAPSHOT_TABLE: DROP SNAPSHOT TABLE statement. * DROP_ROW_ACCESS_POLICY: DROP [ALL] ROW ACCESS POLICY|POLICIES statement. * ALTER_TABLE: ALTER TABLE statement. * ALTER_VIEW: ALTER VIEW statement. * ALTER_MATERIALIZED_VIEW: ALTER MATERIALIZED VIEW statement. * ALTER_SCHEMA: ALTER SCHEMA statement. * SCRIPT: SCRIPT. * TRUNCATE_TABLE: TRUNCATE TABLE statement. * CREATE_EXTERNAL_TABLE: CREATE EXTERNAL TABLE statement. * EXPORT_DATA: EXPORT DATA statement. * EXPORT_MODEL: EXPORT MODEL statement. * LOAD_DATA: LOAD DATA statement. * CALL: CALL statement.

§timeline: Option<Vec<QueryTimelineSample>>

Output only. Describes a timeline of job execution.

§total_bytes_billed: Option<i64>

Output only. If the project is configured to use on-demand pricing, then this field contains the total bytes billed for the job. If the project is configured to use flat-rate pricing, then you are not billed for bytes and this field is informational only.

§total_bytes_processed: Option<i64>

Output only. Total bytes processed for the job.

§total_bytes_processed_accuracy: Option<String>

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.

§total_partitions_processed: Option<i64>

Output only. Total number of partitions processed from all partitioned tables referenced in the job.

§total_services_sku_slot_ms: Option<i64>

Output only. Total slot milliseconds for the job that ran on external services and billed on the services SKU. This field is only populated for jobs that have external service costs, and is the total of the usage for costs whose billing method is "SERVICES_SKU".

§total_slot_ms: Option<i64>

Output only. Slot-milliseconds for the job.

§transferred_bytes: Option<i64>

Output only. Total bytes transferred for cross-cloud queries such as Cross Cloud Transfer and CREATE TABLE AS SELECT (CTAS).

§undeclared_query_parameters: Option<Vec<QueryParameter>>

Output only. GoogleSQL only: list of undeclared query parameters detected during a dry run validation.

§vector_search_statistics: Option<VectorSearchStatistics>

Output only. Vector Search query specific statistics.

Trait Implementations§

Source§

impl Clone for JobStatistics2

Source§

fn clone(&self) -> JobStatistics2

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for JobStatistics2

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for JobStatistics2

Source§

fn default() -> JobStatistics2

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for JobStatistics2

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for JobStatistics2

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl Part for JobStatistics2

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,