pub mod client;
pub mod http_server;
pub mod prometheus_metrics;
pub mod server;
pub mod snapshot_cache;
pub mod sv1;
pub use client::{
ExtendedChannelInfo, StandardChannelInfo, Sv2ClientInfo, Sv2ClientMetadata,
Sv2ClientsMonitoring, Sv2ClientsSummary,
};
pub use http_server::MonitoringServer;
pub use server::{
ServerExtendedChannelInfo, ServerInfo, ServerMonitoring, ServerStandardChannelInfo,
ServerSummary,
};
pub use snapshot_cache::{MonitoringSnapshot, SnapshotCache};
pub use sv1::{Sv1ClientInfo, Sv1ClientsMonitoring, Sv1ClientsSummary};
use utoipa::ToSchema;
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
pub struct GlobalInfo {
pub server: Option<ServerSummary>,
pub sv2_clients: Option<Sv2ClientsSummary>,
pub sv1_clients: Option<Sv1ClientsSummary>,
pub uptime_secs: u64,
}