pub struct LogsClient { /* private fields */ }Implementations§
Source§impl LogsClient
impl LogsClient
pub fn new(api_client: WazuhApiClient) -> Self
pub async fn get_manager_logs( &mut self, limit: Option<u32>, offset: Option<u32>, level: Option<&str>, tag: Option<&str>, search: Option<&str>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn get_error_logs( &mut self, limit: Option<u32>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn get_warning_logs( &mut self, limit: Option<u32>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn get_critical_logs( &mut self, limit: Option<u32>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn get_logs_by_tag( &mut self, tag: &str, limit: Option<u32>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn search_logs( &mut self, search_term: &str, limit: Option<u32>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn get_logcollector_stats( &mut self, agent_id: &str, ) -> Result<LogCollectorStats, WazuhApiError>
pub async fn get_analysisd_stats( &mut self, ) -> Result<AnalysisdStats, WazuhApiError>
pub async fn get_remoted_stats(&mut self) -> Result<RemotedStats, WazuhApiError>
pub async fn get_hourly_stats(&mut self) -> Result<Value, WazuhApiError>
pub async fn get_weekly_stats(&mut self) -> Result<Value, WazuhApiError>
pub async fn get_logs_summary(&mut self) -> Result<Value, WazuhApiError>
pub async fn get_recent_errors( &mut self, limit: Option<u32>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn get_recent_warnings( &mut self, limit: Option<u32>, ) -> Result<Vec<LogEntry>, WazuhApiError>
pub async fn get_performance_metrics(&mut self) -> Result<Value, WazuhApiError>
pub async fn monitor_agent_ingestion( &mut self, agent_id: &str, ) -> Result<Value, WazuhApiError>
Trait Implementations§
Source§impl Clone for LogsClient
impl Clone for LogsClient
Source§fn clone(&self) -> LogsClient
fn clone(&self) -> LogsClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogsClient
impl !RefUnwindSafe for LogsClient
impl Send for LogsClient
impl Sync for LogsClient
impl Unpin for LogsClient
impl !UnwindSafe for LogsClient
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