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	pub metrics_retention_hours:u64,
13	pub alert_threshold_ms:u64,
14	pub trace_sampling_rate:f64,
15	pub max_traces_stored:usize,
16}
17
18impl Default for Struct {
19	fn default() -> Self {
20		Self {
21			update_interval_ms:5000,
22			metrics_retention_hours:24,
23			alert_threshold_ms:1000,
24			trace_sampling_rate:0.1,
25			max_traces_stored:1000,
26		}
27	}
28}