Skip to main content

Mountain/IPC/StatusReporter/
IPCStatusReport.rs

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