Skip to main content

JobStatistics

Struct JobStatistics 

Source
#[non_exhaustive]
pub struct JobStatistics {
Show 24 fields pub creation_time: i64, pub start_time: i64, pub end_time: i64, pub total_bytes_processed: Option<Int64Value>, pub completion_ratio: Option<DoubleValue>, pub quota_deferments: Vec<String>, pub query: Option<JobStatistics2>, pub load: Option<JobStatistics3>, pub extract: Option<JobStatistics4>, pub copy: Option<CopyJobStatistics>, pub total_slot_ms: Option<Int64Value>, pub reservation_id: String, pub num_child_jobs: i64, pub parent_job_id: String, pub script_statistics: Option<ScriptStatistics>, pub row_level_security_statistics: Option<RowLevelSecurityStatistics>, pub data_masking_statistics: Option<DataMaskingStatistics>, pub transaction_info: Option<TransactionInfo>, pub session_info: Option<SessionInfo>, pub final_execution_duration_ms: i64, pub edition: ReservationEdition, pub reservation_group_path: Vec<String>, pub global_query_remote_regions: Vec<String>, pub parent_global_query_job: Option<JobReference>, /* private fields */
}
Expand description

Statistics for a single job execution.

Fields (Non-exhaustive)§

This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.
§creation_time: i64

Output only. Creation time of this job, in milliseconds since the epoch. This field will be present on all jobs.

§start_time: i64

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.

§end_time: i64

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.

§total_bytes_processed: Option<Int64Value>

Output only. Total bytes processed for the job.

§completion_ratio: Option<DoubleValue>

Output only. [TrustedTester] Job progress (0.0 -> 1.0) for LOAD and EXTRACT jobs.

§quota_deferments: Vec<String>

Output only. Quotas which delayed this job’s start time.

§query: Option<JobStatistics2>

Output only. Statistics for a query job.

§load: Option<JobStatistics3>

Output only. Statistics for a load job.

§extract: Option<JobStatistics4>

Output only. Statistics for an extract job.

§copy: Option<CopyJobStatistics>

Output only. Statistics for a copy job.

§total_slot_ms: Option<Int64Value>

Output only. Slot-milliseconds for the job.

§reservation_id: String

Output only. Name of the primary reservation assigned to this job. Note that this could be different than reservations reported in the reservation usage field if parent reservations were used to execute this job.

§num_child_jobs: i64

Output only. Number of child jobs executed.

§parent_job_id: String

Output only. If this is a child job, specifies the job ID of the parent.

§script_statistics: Option<ScriptStatistics>

Output only. If this a child job of a script, specifies information about the context of this job within the script.

§row_level_security_statistics: Option<RowLevelSecurityStatistics>

Output only. Statistics for row-level security. Present only for query and extract jobs.

§data_masking_statistics: Option<DataMaskingStatistics>

Output only. Statistics for data-masking. Present only for query and extract jobs.

§transaction_info: Option<TransactionInfo>

Output only. [Alpha] Information of the multi-statement transaction if this job is part of one.

This property is only expected on a child job or a job that is in a session. A script parent job is not part of the transaction started in the script.

§session_info: Option<SessionInfo>

Output only. Information of the session if this job is part of one.

§final_execution_duration_ms: i64

Output only. The duration in milliseconds of the execution of the final attempt of this job, as BigQuery may internally re-attempt to execute the job.

§edition: ReservationEdition

Output only. Name of edition corresponding to the reservation for this job at the time of this update.

§reservation_group_path: Vec<String>

Output only. The reservation group path of the reservation assigned to this job. This field has a limit of 10 nested reservation groups. This is to maintain consistency between reservatins info schema and jobs info schema. The first reservation group is the root reservation group and the last is the leaf or lowest level reservation group.

§global_query_remote_regions: Vec<String>

Output only. Regions where the global query accesses data.

§parent_global_query_job: Option<JobReference>

Output only. The global query that created this job.

Implementations§

Source§

impl JobStatistics

Source

pub fn new() -> Self

Creates a new default instance.

Source

pub fn set_creation_time<T: Into<i64>>(self, v: T) -> Self

Sets the value of creation_time.

§Example
let x = JobStatistics::new().set_creation_time(42);
Source

pub fn set_start_time<T: Into<i64>>(self, v: T) -> Self

Sets the value of start_time.

§Example
let x = JobStatistics::new().set_start_time(42);
Source

pub fn set_end_time<T: Into<i64>>(self, v: T) -> Self

Sets the value of end_time.

§Example
let x = JobStatistics::new().set_end_time(42);
Source

pub fn set_total_bytes_processed<T>(self, v: T) -> Self
where T: Into<Int64Value>,

Sets the value of total_bytes_processed.

§Example
use wkt::Int64Value;
let x = JobStatistics::new().set_total_bytes_processed(Int64Value::default()/* use setters */);
Source

pub fn set_or_clear_total_bytes_processed<T>(self, v: Option<T>) -> Self
where T: Into<Int64Value>,

Sets or clears the value of total_bytes_processed.

§Example
use wkt::Int64Value;
let x = JobStatistics::new().set_or_clear_total_bytes_processed(Some(Int64Value::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_total_bytes_processed(None::<Int64Value>);
Source

pub fn set_completion_ratio<T>(self, v: T) -> Self
where T: Into<DoubleValue>,

Sets the value of completion_ratio.

§Example
use wkt::DoubleValue;
let x = JobStatistics::new().set_completion_ratio(DoubleValue::default()/* use setters */);
Source

pub fn set_or_clear_completion_ratio<T>(self, v: Option<T>) -> Self
where T: Into<DoubleValue>,

Sets or clears the value of completion_ratio.

§Example
use wkt::DoubleValue;
let x = JobStatistics::new().set_or_clear_completion_ratio(Some(DoubleValue::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_completion_ratio(None::<DoubleValue>);
Source

pub fn set_quota_deferments<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of quota_deferments.

§Example
let x = JobStatistics::new().set_quota_deferments(["a", "b", "c"]);
Source

pub fn set_query<T>(self, v: T) -> Self
where T: Into<JobStatistics2>,

Sets the value of query.

§Example
use google_cloud_bigquery_v2::model::JobStatistics2;
let x = JobStatistics::new().set_query(JobStatistics2::default()/* use setters */);
Source

pub fn set_or_clear_query<T>(self, v: Option<T>) -> Self
where T: Into<JobStatistics2>,

Sets or clears the value of query.

§Example
use google_cloud_bigquery_v2::model::JobStatistics2;
let x = JobStatistics::new().set_or_clear_query(Some(JobStatistics2::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_query(None::<JobStatistics2>);
Source

pub fn set_load<T>(self, v: T) -> Self
where T: Into<JobStatistics3>,

Sets the value of load.

§Example
use google_cloud_bigquery_v2::model::JobStatistics3;
let x = JobStatistics::new().set_load(JobStatistics3::default()/* use setters */);
Source

pub fn set_or_clear_load<T>(self, v: Option<T>) -> Self
where T: Into<JobStatistics3>,

Sets or clears the value of load.

§Example
use google_cloud_bigquery_v2::model::JobStatistics3;
let x = JobStatistics::new().set_or_clear_load(Some(JobStatistics3::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_load(None::<JobStatistics3>);
Source

pub fn set_extract<T>(self, v: T) -> Self
where T: Into<JobStatistics4>,

Sets the value of extract.

§Example
use google_cloud_bigquery_v2::model::JobStatistics4;
let x = JobStatistics::new().set_extract(JobStatistics4::default()/* use setters */);
Source

pub fn set_or_clear_extract<T>(self, v: Option<T>) -> Self
where T: Into<JobStatistics4>,

Sets or clears the value of extract.

§Example
use google_cloud_bigquery_v2::model::JobStatistics4;
let x = JobStatistics::new().set_or_clear_extract(Some(JobStatistics4::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_extract(None::<JobStatistics4>);
Source

pub fn set_copy<T>(self, v: T) -> Self

Sets the value of copy.

§Example
use google_cloud_bigquery_v2::model::CopyJobStatistics;
let x = JobStatistics::new().set_copy(CopyJobStatistics::default()/* use setters */);
Source

pub fn set_or_clear_copy<T>(self, v: Option<T>) -> Self

Sets or clears the value of copy.

§Example
use google_cloud_bigquery_v2::model::CopyJobStatistics;
let x = JobStatistics::new().set_or_clear_copy(Some(CopyJobStatistics::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_copy(None::<CopyJobStatistics>);
Source

pub fn set_total_slot_ms<T>(self, v: T) -> Self
where T: Into<Int64Value>,

Sets the value of total_slot_ms.

§Example
use wkt::Int64Value;
let x = JobStatistics::new().set_total_slot_ms(Int64Value::default()/* use setters */);
Source

pub fn set_or_clear_total_slot_ms<T>(self, v: Option<T>) -> Self
where T: Into<Int64Value>,

Sets or clears the value of total_slot_ms.

§Example
use wkt::Int64Value;
let x = JobStatistics::new().set_or_clear_total_slot_ms(Some(Int64Value::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_total_slot_ms(None::<Int64Value>);
Source

pub fn set_reservation_id<T: Into<String>>(self, v: T) -> Self

Sets the value of reservation_id.

§Example
let x = JobStatistics::new().set_reservation_id("example");
Source

pub fn set_num_child_jobs<T: Into<i64>>(self, v: T) -> Self

Sets the value of num_child_jobs.

§Example
let x = JobStatistics::new().set_num_child_jobs(42);
Source

pub fn set_parent_job_id<T: Into<String>>(self, v: T) -> Self

Sets the value of parent_job_id.

§Example
let x = JobStatistics::new().set_parent_job_id("example");
Source

pub fn set_script_statistics<T>(self, v: T) -> Self

Sets the value of script_statistics.

§Example
use google_cloud_bigquery_v2::model::ScriptStatistics;
let x = JobStatistics::new().set_script_statistics(ScriptStatistics::default()/* use setters */);
Source

pub fn set_or_clear_script_statistics<T>(self, v: Option<T>) -> Self

Sets or clears the value of script_statistics.

§Example
use google_cloud_bigquery_v2::model::ScriptStatistics;
let x = JobStatistics::new().set_or_clear_script_statistics(Some(ScriptStatistics::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_script_statistics(None::<ScriptStatistics>);
Source

pub fn set_row_level_security_statistics<T>(self, v: T) -> Self

Sets the value of row_level_security_statistics.

§Example
use google_cloud_bigquery_v2::model::RowLevelSecurityStatistics;
let x = JobStatistics::new().set_row_level_security_statistics(RowLevelSecurityStatistics::default()/* use setters */);
Source

pub fn set_or_clear_row_level_security_statistics<T>(self, v: Option<T>) -> Self

Sets or clears the value of row_level_security_statistics.

§Example
use google_cloud_bigquery_v2::model::RowLevelSecurityStatistics;
let x = JobStatistics::new().set_or_clear_row_level_security_statistics(Some(RowLevelSecurityStatistics::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_row_level_security_statistics(None::<RowLevelSecurityStatistics>);
Source

pub fn set_data_masking_statistics<T>(self, v: T) -> Self

Sets the value of data_masking_statistics.

§Example
use google_cloud_bigquery_v2::model::DataMaskingStatistics;
let x = JobStatistics::new().set_data_masking_statistics(DataMaskingStatistics::default()/* use setters */);
Source

pub fn set_or_clear_data_masking_statistics<T>(self, v: Option<T>) -> Self

Sets or clears the value of data_masking_statistics.

§Example
use google_cloud_bigquery_v2::model::DataMaskingStatistics;
let x = JobStatistics::new().set_or_clear_data_masking_statistics(Some(DataMaskingStatistics::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_data_masking_statistics(None::<DataMaskingStatistics>);
Source

pub fn set_transaction_info<T>(self, v: T) -> Self

Sets the value of transaction_info.

§Example
use google_cloud_bigquery_v2::model::job_statistics::TransactionInfo;
let x = JobStatistics::new().set_transaction_info(TransactionInfo::default()/* use setters */);
Source

pub fn set_or_clear_transaction_info<T>(self, v: Option<T>) -> Self

Sets or clears the value of transaction_info.

§Example
use google_cloud_bigquery_v2::model::job_statistics::TransactionInfo;
let x = JobStatistics::new().set_or_clear_transaction_info(Some(TransactionInfo::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_transaction_info(None::<TransactionInfo>);
Source

pub fn set_session_info<T>(self, v: T) -> Self
where T: Into<SessionInfo>,

Sets the value of session_info.

§Example
use google_cloud_bigquery_v2::model::SessionInfo;
let x = JobStatistics::new().set_session_info(SessionInfo::default()/* use setters */);
Source

pub fn set_or_clear_session_info<T>(self, v: Option<T>) -> Self
where T: Into<SessionInfo>,

Sets or clears the value of session_info.

§Example
use google_cloud_bigquery_v2::model::SessionInfo;
let x = JobStatistics::new().set_or_clear_session_info(Some(SessionInfo::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_session_info(None::<SessionInfo>);
Source

pub fn set_final_execution_duration_ms<T: Into<i64>>(self, v: T) -> Self

Sets the value of final_execution_duration_ms.

§Example
let x = JobStatistics::new().set_final_execution_duration_ms(42);
Source

pub fn set_edition<T: Into<ReservationEdition>>(self, v: T) -> Self

Sets the value of edition.

§Example
use google_cloud_bigquery_v2::model::ReservationEdition;
let x0 = JobStatistics::new().set_edition(ReservationEdition::Standard);
let x1 = JobStatistics::new().set_edition(ReservationEdition::Enterprise);
let x2 = JobStatistics::new().set_edition(ReservationEdition::EnterprisePlus);
Source

pub fn set_reservation_group_path<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of reservation_group_path.

§Example
let x = JobStatistics::new().set_reservation_group_path(["a", "b", "c"]);
Source

pub fn set_global_query_remote_regions<T, V>(self, v: T) -> Self
where T: IntoIterator<Item = V>, V: Into<String>,

Sets the value of global_query_remote_regions.

§Example
let x = JobStatistics::new().set_global_query_remote_regions(["a", "b", "c"]);
Source

pub fn set_parent_global_query_job<T>(self, v: T) -> Self
where T: Into<JobReference>,

Sets the value of parent_global_query_job.

§Example
use google_cloud_bigquery_v2::model::JobReference;
let x = JobStatistics::new().set_parent_global_query_job(JobReference::default()/* use setters */);
Source

pub fn set_or_clear_parent_global_query_job<T>(self, v: Option<T>) -> Self
where T: Into<JobReference>,

Sets or clears the value of parent_global_query_job.

§Example
use google_cloud_bigquery_v2::model::JobReference;
let x = JobStatistics::new().set_or_clear_parent_global_query_job(Some(JobReference::default()/* use setters */));
let x = JobStatistics::new().set_or_clear_parent_global_query_job(None::<JobReference>);

Trait Implementations§

Source§

impl Clone for JobStatistics

Source§

fn clone(&self) -> JobStatistics

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for JobStatistics

Source§

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

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

impl Default for JobStatistics

Source§

fn default() -> JobStatistics

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

impl Message for JobStatistics

Source§

fn typename() -> &'static str

The typename of this message.
Source§

impl PartialEq for JobStatistics

Source§

fn eq(&self, other: &JobStatistics) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for JobStatistics

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> FutureExt for T

Source§

fn with_context(self, otel_cx: Context) -> WithContext<Self>

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Source§

fn with_current_context(self) -> WithContext<Self>

Attaches the current Context to this type, returning a WithContext wrapper. Read more
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> IntoRequest<T> for T

Source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
Source§

impl<L> LayerExt<L> for L

Source§

fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>
where L: Layer<S>,

Applies the layer to a service and wraps it in Layered.
Source§

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

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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 = !

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<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

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