pub struct CapabilityHnsw {
pub evictions_total: u64,
pub evicted_recently: bool,
}Expand description
HNSW vector-index health (capabilities schema v2, v0.6.3.1 P3).
Closes the G2 audit gap by surfacing both the cumulative oldest-eviction count and a rolling-window flag so operators can distinguish “this process has hit the cap once, long ago” from “we are currently sustained at the cap and shedding embeddings now”. Both numbers are process-local — the index itself resets on restart so persistence would be misleading.
Fields§
§evictions_total: u64Cumulative count of vectors evicted by the MAX_ENTRIES-cap path
since this process started.
evicted_recently: boolTrue when at least one eviction has occurred in the last 60 s. Lets dashboards alert on active pressure rather than only the historical counter.
Trait Implementations§
Source§impl Clone for CapabilityHnsw
impl Clone for CapabilityHnsw
Source§fn clone(&self) -> CapabilityHnsw
fn clone(&self) -> CapabilityHnsw
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 CapabilityHnsw
impl Debug for CapabilityHnsw
Source§impl Default for CapabilityHnsw
impl Default for CapabilityHnsw
Source§fn default() -> CapabilityHnsw
fn default() -> CapabilityHnsw
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CapabilityHnsw
impl<'de> Deserialize<'de> for CapabilityHnsw
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 CapabilityHnsw
impl RefUnwindSafe for CapabilityHnsw
impl Send for CapabilityHnsw
impl Sync for CapabilityHnsw
impl Unpin for CapabilityHnsw
impl UnsafeUnpin for CapabilityHnsw
impl UnwindSafe for CapabilityHnsw
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