Mountain/IPC/StatusReporter/ServiceMetrics.rs
1
2//! Per-service performance counters embedded inside
3//! `ServiceInfo::Struct`. Currently filled with mock values
4//! pending real metric plumbing.
5
6use serde::{Deserialize, Serialize};
7
8#[derive(Debug, Clone, Serialize, Deserialize)]
9pub struct Struct {
10 pub response_time:f64,
11
12 pub error_rate:f64,
13
14 pub throughput:f64,
15
16 pub memory_usage:f64,
17
18 pub cpu_usage:f64,
19
20 pub last_updated:u64,
21}