#[non_exhaustive]pub struct UsageSnapshot {
pub milli_dcu: i64,
pub shuffle_storage_gb: i64,
pub milli_dcu_premium: i64,
pub shuffle_storage_gb_premium: i64,
pub milli_accelerator: i64,
pub accelerator_type: String,
pub snapshot_time: Option<Timestamp>,
/* private fields */
}Expand description
The usage snapshot represents the resources consumed by a workload at a specified time.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.milli_dcu: i64Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
shuffle_storage_gb: i64Optional. Shuffle Storage in gigabytes (GB). (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
Optional. Milli (one-thousandth) Dataproc Compute Units (DCUs) charged at premium tier (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing)).
Optional. Shuffle Storage in gigabytes (GB) charged at premium tier. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
milli_accelerator: i64Optional. Milli (one-thousandth) accelerator. (see [Dataproc Serverless pricing] (https://cloud.google.com/dataproc-serverless/pricing))
accelerator_type: StringOptional. Accelerator type being used, if any
snapshot_time: Option<Timestamp>Optional. The timestamp of the usage snapshot.
Implementations§
Source§impl UsageSnapshot
impl UsageSnapshot
pub fn new() -> Self
Sourcepub fn set_milli_dcu<T: Into<i64>>(self, v: T) -> Self
pub fn set_milli_dcu<T: Into<i64>>(self, v: T) -> Self
Sets the value of milli_dcu.
Sourcepub fn set_shuffle_storage_gb<T: Into<i64>>(self, v: T) -> Self
pub fn set_shuffle_storage_gb<T: Into<i64>>(self, v: T) -> Self
Sets the value of shuffle_storage_gb.
Sets the value of milli_dcu_premium.
Sets the value of shuffle_storage_gb_premium.
Sourcepub fn set_milli_accelerator<T: Into<i64>>(self, v: T) -> Self
pub fn set_milli_accelerator<T: Into<i64>>(self, v: T) -> Self
Sets the value of milli_accelerator.
Sourcepub fn set_accelerator_type<T: Into<String>>(self, v: T) -> Self
pub fn set_accelerator_type<T: Into<String>>(self, v: T) -> Self
Sets the value of accelerator_type.
Sourcepub fn set_snapshot_time<T>(self, v: T) -> Self
pub fn set_snapshot_time<T>(self, v: T) -> Self
Sets the value of snapshot_time.
Sourcepub fn set_or_clear_snapshot_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_snapshot_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of snapshot_time.
Trait Implementations§
Source§impl Clone for UsageSnapshot
impl Clone for UsageSnapshot
Source§fn clone(&self) -> UsageSnapshot
fn clone(&self) -> UsageSnapshot
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more