systemprompt_analytics/models/cli/
overview.rs1use serde::{Deserialize, Serialize};
7use sqlx::FromRow;
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 OverviewCostRow {
31 pub cost: Option<i64>,
32}