Struct google_api_proto::google::cloud::bigquery::v2::JobStatistics

source ·
pub struct JobStatistics {
Show 21 fields pub creation_time: i64, pub start_time: i64, pub end_time: i64, pub total_bytes_processed: Option<i64>, pub completion_ratio: Option<f64>, 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<i64>, 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: i32,
}
Expand description

Statistics for a single job execution.

Fields§

§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<i64>

Output only. Total bytes processed for the job.

§completion_ratio: Option<f64>

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

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: i32

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

Implementations§

source§

impl JobStatistics

source

pub fn edition(&self) -> ReservationEdition

Returns the enum value of edition, or the default if the field is set to an invalid enum value.

source

pub fn set_edition(&mut self, value: ReservationEdition)

Sets edition to the provided enum value.

Trait Implementations§

source§

impl Clone for JobStatistics

source§

fn clone(&self) -> JobStatistics

Returns a copy 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 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() -> Self

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

impl Message for JobStatistics

source§

fn encoded_len(&self) -> usize

Returns the encoded length of the message without a length delimiter.
source§

fn clear(&mut self)

Clears the message, resetting all fields to their default.
source§

fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message to a buffer. Read more
source§

fn encode_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message to a newly allocated buffer.
source§

fn encode_length_delimited( &self, buf: &mut impl BufMut, ) -> Result<(), EncodeError>
where Self: Sized,

Encodes the message with a length-delimiter to a buffer. Read more
source§

fn encode_length_delimited_to_vec(&self) -> Vec<u8>
where Self: Sized,

Encodes the message with a length-delimiter to a newly allocated buffer.
source§

fn decode(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes an instance of the message from a buffer. Read more
source§

fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>
where Self: Default,

Decodes a length-delimited instance of the message from the buffer.
source§

fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes an instance of the message from a buffer, and merges it into self. Read more
source§

fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>
where Self: Sized,

Decodes a length-delimited instance of the message from buffer, and merges it into self.
source§

impl PartialEq for JobStatistics

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
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<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
§

impl<T> Instrument for T

§

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

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

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<T> ToOwned for T
where T: Clone,

§

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

§

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

§

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.
§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

§

fn vzip(self) -> V

§

impl<T> WithSubscriber for T

§

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
§

fn with_current_subscriber(self) -> WithDispatch<Self>

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