#[non_exhaustive]pub struct UsageMetrics {
pub milli_dcu_seconds: i64,
pub shuffle_storage_gb_seconds: i64,
pub milli_accelerator_seconds: i64,
pub accelerator_type: String,
/* private fields */
}Expand description
Usage metrics represent approximate total resources consumed by a workload.
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.milli_dcu_seconds: i64Optional. DCU (Dataproc Compute Units) usage in (milliDCU x seconds)
(see [Dataproc Serverless pricing]
(https://cloud.google.com/dataproc-serverless/pricing)).
shuffle_storage_gb_seconds: i64Optional. Shuffle storage usage in (GB x seconds) (see
[Dataproc Serverless pricing]
(https://cloud.google.com/dataproc-serverless/pricing)).
milli_accelerator_seconds: i64Optional. Accelerator usage in (milliAccelerator x seconds) (see
[Dataproc Serverless pricing]
(https://cloud.google.com/dataproc-serverless/pricing)).
accelerator_type: StringOptional. Accelerator type being used, if any
Implementations§
Source§impl UsageMetrics
impl UsageMetrics
pub fn new() -> Self
Sourcepub fn set_milli_dcu_seconds<T: Into<i64>>(self, v: T) -> Self
pub fn set_milli_dcu_seconds<T: Into<i64>>(self, v: T) -> Self
Sets the value of milli_dcu_seconds.
Sourcepub fn set_shuffle_storage_gb_seconds<T: Into<i64>>(self, v: T) -> Self
pub fn set_shuffle_storage_gb_seconds<T: Into<i64>>(self, v: T) -> Self
Sets the value of shuffle_storage_gb_seconds.
Sourcepub fn set_milli_accelerator_seconds<T: Into<i64>>(self, v: T) -> Self
pub fn set_milli_accelerator_seconds<T: Into<i64>>(self, v: T) -> Self
Sets the value of milli_accelerator_seconds.
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.
Trait Implementations§
Source§impl Clone for UsageMetrics
impl Clone for UsageMetrics
Source§fn clone(&self) -> UsageMetrics
fn clone(&self) -> UsageMetrics
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for UsageMetrics
impl Debug for UsageMetrics
Source§impl Default for UsageMetrics
impl Default for UsageMetrics
Source§fn default() -> UsageMetrics
fn default() -> UsageMetrics
Returns the “default value” for a type. Read more
Source§impl Message for UsageMetrics
impl Message for UsageMetrics
Source§impl PartialEq for UsageMetrics
impl PartialEq for UsageMetrics
impl StructuralPartialEq for UsageMetrics
Auto Trait Implementations§
impl Freeze for UsageMetrics
impl RefUnwindSafe for UsageMetrics
impl Send for UsageMetrics
impl Sync for UsageMetrics
impl Unpin for UsageMetrics
impl UnwindSafe for UsageMetrics
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more