pub struct SessionStats {Show 13 fields
pub sessions: i64,
pub total_spend_usd: f64,
pub avg_spend_per_session_usd: f64,
pub tokens_in: i64,
pub tokens_out: i64,
pub tokens_total: i64,
pub agent_time_s: f64,
pub avg_session_s: f64,
pub success_rate: f64,
pub completed: i64,
pub failed: i64,
pub abandoned: i64,
pub running: i64,
}Expand description
Aggregate counters for GET /api/v1/sessions/stats. Field-for-field
parity with the Python response body at
cognee/api/v1/sessions/routers/get_sessions_router.py:179-196.
Fields§
§sessions: i64§total_spend_usd: f64§avg_spend_per_session_usd: f64§tokens_in: i64§tokens_out: i64§tokens_total: i64§agent_time_s: f64§avg_session_s: f64§success_rate: f64§completed: i64§failed: i64§abandoned: i64§running: i64Trait Implementations§
Source§impl Clone for SessionStats
impl Clone for SessionStats
Source§fn clone(&self) -> SessionStats
fn clone(&self) -> SessionStats
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionStats
impl Debug for SessionStats
Source§impl<'de> Deserialize<'de> for SessionStats
impl<'de> Deserialize<'de> for SessionStats
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 SessionStats
impl RefUnwindSafe for SessionStats
impl Send for SessionStats
impl Sync for SessionStats
impl Unpin for SessionStats
impl UnsafeUnpin for SessionStats
impl UnwindSafe for SessionStats
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