pub struct RealtimeMetrics {
pub total_inserts: u64,
pub total_updates: u64,
pub total_deletes: u64,
pub total_queries: u64,
pub buffer_flushes: u64,
pub compactions: u64,
pub avg_insert_latency_ms: f64,
pub avg_query_latency_ms: f64,
pub buffer_size: usize,
pub index_size: usize,
pub deleted_count: usize,
}Expand description
Real-time indexing metrics
Fields§
§total_inserts: u64§total_updates: u64§total_deletes: u64§total_queries: u64§buffer_flushes: u64§compactions: u64§avg_insert_latency_ms: f64§avg_query_latency_ms: f64§buffer_size: usize§index_size: usize§deleted_count: usizeImplementations§
Source§impl RealtimeMetrics
impl RealtimeMetrics
pub fn deletion_ratio(&self) -> f32
pub fn needs_compaction(&self, threshold: f32) -> bool
Trait Implementations§
Source§impl Clone for RealtimeMetrics
impl Clone for RealtimeMetrics
Source§fn clone(&self) -> RealtimeMetrics
fn clone(&self) -> RealtimeMetrics
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 RealtimeMetrics
impl Debug for RealtimeMetrics
Source§impl Default for RealtimeMetrics
impl Default for RealtimeMetrics
Source§fn default() -> RealtimeMetrics
fn default() -> RealtimeMetrics
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for RealtimeMetrics
impl RefUnwindSafe for RealtimeMetrics
impl Send for RealtimeMetrics
impl Sync for RealtimeMetrics
impl Unpin for RealtimeMetrics
impl UnwindSafe for RealtimeMetrics
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