Skip to main content

Mountain/IPC/StatusReporter/
IPCStatusReport.rs

1//! Single-tick IPC status report sent to Sky: connection
2//! state, queue depth, listener inventory, recent message
3//! stats, error count, uptime.
4
5use serde::{Deserialize, Serialize};
6
7use crate::IPC::StatusReporter::{ConnectionStatus, MessageStats};
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct Struct {
11	pub timestamp:u64,
12
13	pub connection_status:ConnectionStatus::Struct,
14
15	pub message_queue_size:usize,
16
17	pub active_listeners:Vec<String>,
18
19	pub recent_messages:Vec<MessageStats::Struct>,
20
21	pub error_count:u32,
22
23	pub uptime_seconds:u64,
24}