Skip to main content

Mountain/IPC/Enhanced/PerformanceDashboard/
DashboardConfig.rs

1#![allow(non_snake_case)]
2
3//! Tunable knobs for the performance dashboard - update
4//! cadence, retention window, alert threshold, sampling rate,
5//! and the trace ring-buffer cap.
6
7use serde::{Deserialize, Serialize};
8
9#[derive(Debug, Clone, Serialize, Deserialize)]
10pub struct Struct {
11	pub update_interval_ms:u64,
12
13	pub metrics_retention_hours:u64,
14
15	pub alert_threshold_ms:u64,
16
17	pub trace_sampling_rate:f64,
18
19	pub max_traces_stored:usize,
20}
21
22impl Default for Struct {
23	fn default() -> Self {
24		Self {
25			update_interval_ms:5000,
26
27			metrics_retention_hours:24,
28
29			alert_threshold_ms:1000,
30
31			trace_sampling_rate:0.1,
32
33			max_traces_stored:1000,
34		}
35	}
36}