pulseengine_mcp_monitoring/
config.rs

1//! Monitoring configuration
2
3use serde::{Deserialize, Serialize};
4
5/// Monitoring configuration
6#[derive(Debug, Clone, Serialize, Deserialize)]
7#[serde(default)]
8pub struct MonitoringConfig {
9    /// Enable metrics collection
10    pub enabled: bool,
11    /// Metrics collection interval in seconds
12    pub collection_interval_secs: u64,
13    /// Enable performance monitoring
14    pub performance_monitoring: bool,
15    /// Enable health checks
16    pub health_checks: bool,
17}
18
19impl Default for MonitoringConfig {
20    fn default() -> Self {
21        Self {
22            enabled: true,
23            collection_interval_secs: 60,
24            performance_monitoring: true,
25            health_checks: true,
26        }
27    }
28}
29
30#[cfg(test)]
31#[path = "config_tests.rs"]
32mod config_tests;