pub struct LogAggregator { /* private fields */ }Expand description
Main log aggregator
Implementations§
Source§impl LogAggregator
impl LogAggregator
pub async fn new(config: LogConfig) -> RragResult<Self>
pub async fn start(&self) -> RragResult<()>
pub async fn stop(&self) -> RragResult<()>
pub async fn is_healthy(&self) -> bool
pub fn logger(&self) -> &Arc<StructuredLogger>
pub async fn search_logs(&self, query: &LogQuery) -> Vec<LogEntry>
pub async fn get_stats(&self) -> LogStats
pub fn subscribe_to_stream(&self) -> Receiver<LogEntry>
pub async fn add_log_entry(&self, entry: LogEntry) -> RragResult<()>
Auto Trait Implementations§
impl Freeze for LogAggregator
impl !RefUnwindSafe for LogAggregator
impl Send for LogAggregator
impl Sync for LogAggregator
impl Unpin for LogAggregator
impl !UnwindSafe for LogAggregator
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