pub struct NodeMemoryStats {
pub node_id: String,
pub total_memory_mb: u64,
pub allocated_memory_mb: u64,
pub peak_memory_mb: u64,
pub free_memory_mb: u64,
pub utilization_percent: f32,
pub pressure_score: f32,
pub fragmentation: f32,
pub allocation_failures: u32,
pub allocation_rate_mbps: f32,
pub deallocation_rate_mbps: f32,
pub timestamp_ms: u64,
}Expand description
Memory usage statistics for a node
Fields§
§node_id: StringNode identifier
total_memory_mb: u64Total memory capacity in MB
allocated_memory_mb: u64Currently allocated memory in MB
peak_memory_mb: u64Peak memory usage in MB
free_memory_mb: u64Free memory in MB
utilization_percent: f32Memory utilization percentage
pressure_score: f32Memory pressure score (0.0 to 1.0)
fragmentation: f32Fragmentation level (0.0 to 1.0)
allocation_failures: u32Number of allocation failures
allocation_rate_mbps: f32Memory allocation rate (MB/s)
deallocation_rate_mbps: f32Memory deallocation rate (MB/s)
timestamp_ms: u64Timestamp of measurement
Trait Implementations§
Source§impl Clone for NodeMemoryStats
impl Clone for NodeMemoryStats
Source§fn clone(&self) -> NodeMemoryStats
fn clone(&self) -> NodeMemoryStats
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 NodeMemoryStats
impl Debug for NodeMemoryStats
Source§impl<'de> Deserialize<'de> for NodeMemoryStats
impl<'de> Deserialize<'de> for NodeMemoryStats
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for NodeMemoryStats
impl RefUnwindSafe for NodeMemoryStats
impl Send for NodeMemoryStats
impl Sync for NodeMemoryStats
impl Unpin for NodeMemoryStats
impl UnsafeUnpin for NodeMemoryStats
impl UnwindSafe for NodeMemoryStats
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