pub struct CollectionHealth {
pub status: CollectionHealthStatus,
pub revision: u64,
pub storage_revision: u64,
pub doc_count: u64,
pub index_count: usize,
pub ready_index_count: usize,
pub read_only: bool,
pub checkpoint_pending: bool,
pub wal_ops_since_checkpoint: u64,
pub wal_bytes_since_checkpoint: u64,
pub maintenance_active: bool,
pub reasons: Vec<String>,
}Expand description
Machine-readable collection readiness and checkpoint-lag snapshot.
Fields§
§status: CollectionHealthStatus§revision: u64§storage_revision: u64§doc_count: u64§index_count: usize§ready_index_count: usize§read_only: bool§checkpoint_pending: boolWAL work awaiting an authoritative snapshot checkpoint. Pending WAL is normal for interval/manual durability and does not by itself degrade readiness.
wal_ops_since_checkpoint: u64§wal_bytes_since_checkpoint: u64§maintenance_active: boolWhether an explicitly owned background maintenance runtime currently holds this collection’s single scheduler claim.
reasons: Vec<String>Stable, actionable explanations for non-healthy states.
Implementations§
Source§impl CollectionHealth
impl CollectionHealth
Sourcepub fn is_healthy(&self) -> bool
pub fn is_healthy(&self) -> bool
Returns true only while the collection is open and fully ready.
Trait Implementations§
Source§impl Clone for CollectionHealth
impl Clone for CollectionHealth
Source§impl Debug for CollectionHealth
impl Debug for CollectionHealth
Source§impl<'de> Deserialize<'de> for CollectionHealth
impl<'de> Deserialize<'de> for CollectionHealth
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
impl Eq for CollectionHealth
Source§impl PartialEq for CollectionHealth
impl PartialEq for CollectionHealth
Source§impl Serialize for CollectionHealth
impl Serialize for CollectionHealth
impl StructuralPartialEq for CollectionHealth
Auto Trait Implementations§
impl Freeze for CollectionHealth
impl RefUnwindSafe for CollectionHealth
impl Send for CollectionHealth
impl Sync for CollectionHealth
impl Unpin for CollectionHealth
impl UnsafeUnpin for CollectionHealth
impl UnwindSafe for CollectionHealth
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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