pub struct HealthInfo {
pub operational: bool,
pub wal_size_bytes: u64,
pub active_txns: u64,
pub buffer_pool_usage: f64,
pub checkpoint_age_secs: u64,
}Expand description
Basic health information
This is the minimal info the kernel exposes. Detailed metrics are handled by ObservabilityExtension plugins.
Fields§
§operational: boolIs the kernel operational
wal_size_bytes: u64Current WAL size in bytes
active_txns: u64Active transaction count
buffer_pool_usage: f64Buffer pool usage (0.0 - 1.0)
checkpoint_age_secs: u64Last checkpoint age in seconds
Trait Implementations§
Source§impl Clone for HealthInfo
impl Clone for HealthInfo
Source§fn clone(&self) -> HealthInfo
fn clone(&self) -> HealthInfo
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 HealthInfo
impl Debug for HealthInfo
Auto Trait Implementations§
impl Freeze for HealthInfo
impl RefUnwindSafe for HealthInfo
impl Send for HealthInfo
impl Sync for HealthInfo
impl Unpin for HealthInfo
impl UnsafeUnpin for HealthInfo
impl UnwindSafe for HealthInfo
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> 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