pub struct MonitoringService { /* private fields */ }Expand description
Monitoring service interface
Implementations§
Source§impl MonitoringService
impl MonitoringService
pub async fn new( config: MonitoringConfig, metrics_collector: Arc<MetricsCollector>, ) -> RragResult<Self>
pub async fn start(&self) -> RragResult<()>
pub async fn stop(&self) -> RragResult<()>
pub async fn is_healthy(&self) -> bool
pub async fn get_overview(&self) -> SystemOverview
pub async fn record_search(&self, analytics: SearchAnalytics) -> RragResult<()>
pub async fn track_user_activity( &self, activity: UserActivity, ) -> RragResult<()>
Auto Trait Implementations§
impl Freeze for MonitoringService
impl !RefUnwindSafe for MonitoringService
impl Send for MonitoringService
impl Sync for MonitoringService
impl Unpin for MonitoringService
impl !UnwindSafe for MonitoringService
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