pub struct ClusterUtilization {
pub cpu_percent: f64,
pub memory_percent: f64,
pub gpu_percent: f64,
pub total_cpu: u64,
pub used_cpu: u64,
pub total_memory: u64,
pub used_memory: u64,
pub total_gpus: u32,
pub used_gpus: u32,
}Expand description
Cluster utilization metrics
Fields§
§cpu_percent: f64CPU utilization percentage
memory_percent: f64Memory utilization percentage
gpu_percent: f64GPU utilization percentage
total_cpu: u64Total CPU capacity
used_cpu: u64Used CPU
total_memory: u64Total memory
used_memory: u64Used memory
total_gpus: u32Total GPUs
used_gpus: u32Used GPUs
Trait Implementations§
Source§impl Clone for ClusterUtilization
impl Clone for ClusterUtilization
Source§fn clone(&self) -> ClusterUtilization
fn clone(&self) -> ClusterUtilization
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 moreAuto Trait Implementations§
impl Freeze for ClusterUtilization
impl RefUnwindSafe for ClusterUtilization
impl Send for ClusterUtilization
impl Sync for ClusterUtilization
impl Unpin for ClusterUtilization
impl UnwindSafe for ClusterUtilization
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more