Skip to main content

Mountain/IPC/StatusReporter/
IPCStatusReport.rs

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