#[non_exhaustive]pub struct EmbeddedMetrics {
pub hot_rows: u64,
pub hot_bytes: u64,
pub cold_segments: u64,
pub tables: u64,
pub wal_bytes: u64,
pub persistent: bool,
}Expand description
v7.7.5 — observability snapshot returned by
Database::metrics. Plain data, no allocations beyond
what the struct itself takes; cheap to construct and
cheap to serialise.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hot_rows: u64Total live row count across every user table (hot tier only — cold-tier rows live in segment files).
hot_bytes: u64Sum of Table::hot_bytes across every user table.
Tracks against the freezer’s hot_tier_bytes budget.
cold_segments: u64Number of cold-tier segments registered in the catalog. Includes tombstoned slots (segments retired by compaction whose disk file may still be on disk).
tables: u64User-table count (excludes any future engine-managed internal tables).
wal_bytes: u64WAL size at last execute() / checkpoint(). Zero
when the database is in-memory.
persistent: booltrue when the database was opened with open_path —
i.e. WAL + checkpoint persistence is active.
Trait Implementations§
Source§impl Clone for EmbeddedMetrics
impl Clone for EmbeddedMetrics
Source§fn clone(&self) -> EmbeddedMetrics
fn clone(&self) -> EmbeddedMetrics
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for EmbeddedMetrics
Source§impl Debug for EmbeddedMetrics
impl Debug for EmbeddedMetrics
impl Eq for EmbeddedMetrics
Source§impl PartialEq for EmbeddedMetrics
impl PartialEq for EmbeddedMetrics
Source§fn eq(&self, other: &EmbeddedMetrics) -> bool
fn eq(&self, other: &EmbeddedMetrics) -> bool
self and other values to be equal, and is used by ==.