pub struct MonitoringConfig {
pub enable_metrics: bool,
pub enable_health_checks: bool,
pub collection_interval: Duration,
pub health_check_interval: Duration,
pub retention_period: Duration,
pub max_metrics_points: usize,
pub prometheus_config: PrometheusConfig,
pub alerting_config: AlertingConfig,
}
Expand description
Monitoring configuration
Fields§
§enable_metrics: bool
Enable metrics collection
enable_health_checks: bool
Enable health checks
collection_interval: Duration
Metrics collection interval
health_check_interval: Duration
Health check interval
retention_period: Duration
Metrics retention period
max_metrics_points: usize
Maximum stored metrics points
prometheus_config: PrometheusConfig
Prometheus export configuration
alerting_config: AlertingConfig
Alerting configuration
Trait Implementations§
Source§impl Clone for MonitoringConfig
impl Clone for MonitoringConfig
Source§fn clone(&self) -> MonitoringConfig
fn clone(&self) -> MonitoringConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MonitoringConfig
impl Debug for MonitoringConfig
Source§impl Default for MonitoringConfig
impl Default for MonitoringConfig
Source§impl<'de> Deserialize<'de> for MonitoringConfig
impl<'de> Deserialize<'de> for MonitoringConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for MonitoringConfig
impl RefUnwindSafe for MonitoringConfig
impl Send for MonitoringConfig
impl Sync for MonitoringConfig
impl Unpin for MonitoringConfig
impl UnwindSafe for MonitoringConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more