pub struct MonitoringConfig {Show 13 fields
pub enable_metrics: bool,
pub log_level: String,
pub log_format: String,
pub track_latency: bool,
pub track_throughput: bool,
pub track_memory_usage: bool,
pub track_disk_usage: bool,
pub max_latency_ms: u64,
pub min_throughput_per_second: u64,
pub max_memory_usage_mb: u64,
pub max_disk_usage_percent: u8,
pub metrics_interval_seconds: u64,
pub health_check_interval_seconds: u64,
}Expand description
Monitoring and metrics configuration
Fields§
§enable_metrics: boolWhether to enable metrics collection
log_level: StringLog level for monitoring events
log_format: StringLog format for monitoring events
track_latency: boolWhether to track latency metrics
track_throughput: boolWhether to track throughput metrics
track_memory_usage: boolWhether to track memory usage metrics
track_disk_usage: boolWhether to track disk usage metrics
max_latency_ms: u64Maximum acceptable latency in milliseconds
min_throughput_per_second: u64Minimum acceptable throughput per second
max_memory_usage_mb: u64Maximum acceptable memory usage in megabytes
max_disk_usage_percent: u8Maximum acceptable disk usage percentage
metrics_interval_seconds: u64Interval in seconds for collecting metrics
health_check_interval_seconds: u64Interval in seconds for health checks
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§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MonitoringConfig
impl Debug 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