pub struct StatsData {
pub meta_bytes: u64,
pub meta_calls: BTreeMap<String, u64>,
pub schema_bytes_served: u64,
pub tool_calls_proxied: u64,
}Expand description
Usage counters for the mcp-multiplexer --stats report. Whole file
rewritten on every change (it’s a few hundred bytes); same tmp+rename
pattern as tokens.json.
ponytail: counters reset only if the file is deleted — no per-day history.
Fields§
§meta_bytes: u64Context cost the mux itself adds at startup (its own tool list, bytes).
meta_calls: BTreeMap<String, u64>Per meta-tool call counts.
schema_bytes_served: u64Schema bytes served on demand via search_tools/describe_tool.
tool_calls_proxied: u64Proxied upstream calls (call_tool + exposed routes).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for StatsData
impl<'de> Deserialize<'de> for StatsData
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 StatsData
impl RefUnwindSafe for StatsData
impl Send for StatsData
impl Sync for StatsData
impl Unpin for StatsData
impl UnsafeUnpin for StatsData
impl UnwindSafe for StatsData
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