feat: add ecc2 coordination status json output

This commit is contained in:
Affaan Mustafa
2026-04-08 13:15:21 -07:00
parent cd94878374
commit 53d8cee6f8
3 changed files with 60 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
use anyhow::{Context, Result};
use serde::Serialize;
use std::collections::{BTreeMap, HashSet};
use std::fmt;
use std::path::{Path, PathBuf};
@@ -1094,6 +1095,7 @@ pub struct CoordinateBacklogOutcome {
pub remaining_saturated_sessions: usize,
}
#[derive(Debug, Clone, Serialize)]
pub struct CoordinationStatus {
pub backlog_leads: usize,
pub backlog_messages: usize,

View File

@@ -1,5 +1,6 @@
use anyhow::{Context, Result};
use rusqlite::{Connection, OptionalExtension};
use serde::Serialize;
use std::collections::HashMap;
use std::path::{Path, PathBuf};
use std::time::Duration;
@@ -13,7 +14,7 @@ pub struct StateStore {
conn: Connection,
}
#[derive(Debug, Clone, Default)]
#[derive(Debug, Clone, Default, Serialize)]
pub struct DaemonActivity {
pub last_dispatch_at: Option<chrono::DateTime<chrono::Utc>>,
pub last_dispatch_routed: usize,