pub struct HomeStats {
pub total_agents: i64,
pub total_threads: i64,
pub total_messages: i64,
pub avg_run_time_ms: Option<f64>,
pub total_owned_agents: Option<i64>,
pub total_accessible_agents: Option<i64>,
pub most_active_agent: Option<MostActiveAgent>,
pub latest_threads: Option<Vec<LatestThreadInfo>>,
pub recently_used_agents: Option<Vec<RecentlyUsedAgent>>,
pub custom_metrics: Option<HashMap<String, CustomMetric>>,
}Expand description
Home statistics for dashboard
Fields§
§total_agents: i64§total_threads: i64§total_messages: i64§avg_run_time_ms: Option<f64>§total_owned_agents: Option<i64>§total_accessible_agents: Option<i64>§most_active_agent: Option<MostActiveAgent>§latest_threads: Option<Vec<LatestThreadInfo>>§recently_used_agents: Option<Vec<RecentlyUsedAgent>>Recently used agents (last 10 by most recent thread activity)
custom_metrics: Option<HashMap<String, CustomMetric>>Custom metrics that can be displayed in the stats overview Key is the metric name (e.g., “usage”), value is the metric data
Trait Implementations§
Source§impl<'de> Deserialize<'de> for HomeStats
impl<'de> Deserialize<'de> for HomeStats
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 HomeStats
impl RefUnwindSafe for HomeStats
impl Send for HomeStats
impl Sync for HomeStats
impl Unpin for HomeStats
impl UnsafeUnpin for HomeStats
impl UnwindSafe for HomeStats
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