pub struct Stats {
pub collections: usize,
pub total_vectors: usize,
pub uptime_seconds: u64,
pub version: String,
pub default_quantization: String,
pub compression_ratio: f32,
}Expand description
Server statistics returned by GET /stats.
Server: {collections, total_vectors, uptime_seconds, version, default_quantization, compression_ratio}. The last two are
phase25 §5 additions and default to ("none", 1.0) on older
servers that do not emit them.
Fields§
§collections: usizeNumber of collections.
total_vectors: usizeTotal vectors across all collections.
uptime_seconds: u64Server uptime in seconds.
version: StringServer version string.
default_quantization: StringMost-common quantization label across active collections
(none, binary, sq-4bit, sq-8bit, sq-16bit, sq, or
pq). none when the store is empty or the server is older
than phase25 §5.
compression_ratio: f32Mean compression ratio (uncompressed_bytes / compressed_bytes)
across the collections sharing default_quantization. 1.0
when no collections are present or on older servers.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Stats
impl<'de> Deserialize<'de> for Stats
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 Stats
impl RefUnwindSafe for Stats
impl Send for Stats
impl Sync for Stats
impl Unpin for Stats
impl UnsafeUnpin for Stats
impl UnwindSafe for Stats
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request