pub struct MonitoringConfig {
pub ring_buffer_size: usize,
pub channel_buffer_size: usize,
pub mmap_path: String,
pub mmap_file_size: usize,
pub num_workers: usize,
pub flush_interval_ms: u64,
pub enable_compression: bool,
}Expand description
Configuration for the monitoring system
Fields§
§ring_buffer_size: usizeSize of the ring buffer for each metric collector (must be power of 2)
channel_buffer_size: usizeChannel buffer size for async processing
mmap_path: StringPath for memory-mapped files
mmap_file_size: usizeFile size for memory-mapped files
num_workers: usizeNumber of worker threads for metric aggregation
flush_interval_ms: u64Flush interval in milliseconds
enable_compression: boolEnable compression for persisted metrics
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
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