pub struct MonitoringEngine { /* private fields */ }Expand description
High-performance monitoring engine for HFT systems
Implementations§
Source§impl MonitoringEngine
impl MonitoringEngine
Sourcepub fn new(config: MonitoringConfig) -> Result<Arc<Self>>
pub fn new(config: MonitoringConfig) -> Result<Arc<Self>>
Create a new monitoring engine
Sourcepub fn create_collector(&self, name: String) -> Arc<MetricCollector>
pub fn create_collector(&self, name: String) -> Arc<MetricCollector>
Create a new metric collector with a custom name
Sourcepub fn register_collector(&self) -> Arc<MetricCollector>
pub fn register_collector(&self) -> Arc<MetricCollector>
Register a new metric collector with auto-generated name
Sourcepub fn collectors(&self) -> Vec<Arc<MetricCollector>>
pub fn collectors(&self) -> Vec<Arc<MetricCollector>>
Get all registered collectors
Sourcepub fn collector_count(&self) -> usize
pub fn collector_count(&self) -> usize
Get the number of registered collectors
Sourcepub fn stats(&self) -> EngineStats
pub fn stats(&self) -> EngineStats
Get engine statistics
Auto Trait Implementations§
impl !Freeze for MonitoringEngine
impl !RefUnwindSafe for MonitoringEngine
impl Send for MonitoringEngine
impl Sync for MonitoringEngine
impl Unpin for MonitoringEngine
impl !UnwindSafe for MonitoringEngine
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