systemprompt_analytics/models/cli/
overview.rs1use serde::{Deserialize, Serialize};
2use sqlx::FromRow;
3
4#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
5pub struct OverviewAgentRow {
6 pub active_agents: i64,
7 pub total_tasks: i64,
8 pub completed_tasks: i64,
9}
10
11#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
12pub struct OverviewRequestRow {
13 pub total: i64,
14 pub total_tokens: Option<i64>,
15 pub avg_latency: Option<f64>,
16}
17
18#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
19pub struct OverviewToolRow {
20 pub total: i64,
21 pub successful: i64,
22}
23
24#[derive(Debug, Clone, Copy, Serialize, Deserialize, FromRow)]
25pub struct OverviewCostRow {
26 pub cost: Option<i64>,
27}