systemprompt_analytics/models/cli/
overview.rs1use serde::{Deserialize, Serialize};
2use sqlx::FromRow;
3
4#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
5pub struct OverviewConversationRow {
6 pub count: i64,
7}
8
9#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
10pub struct OverviewAgentRow {
11 pub active_agents: i64,
12 pub total_tasks: i64,
13 pub completed_tasks: i64,
14}
15
16#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
17pub struct OverviewRequestRow {
18 pub total: i64,
19 pub total_tokens: Option<i64>,
20 pub avg_latency: Option<f64>,
21}
22
23#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
24pub struct OverviewToolRow {
25 pub total: i64,
26 pub successful: i64,
27}
28
29#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
30pub struct OverviewActiveSessionRow {
31 pub count: i64,
32}
33
34#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
35pub struct OverviewTotalSessionRow {
36 pub count: i64,
37}
38
39#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
40pub struct OverviewCostRow {
41 pub cost: Option<i64>,
42}