pub struct ClusterClient { /* private fields */ }Implementations§
Source§impl ClusterClient
impl ClusterClient
pub fn new(api_client: WazuhApiClient) -> Self
pub async fn get_cluster_status( &mut self, ) -> Result<ClusterStatus, WazuhApiError>
pub async fn get_cluster_nodes( &mut self, limit: Option<u32>, offset: Option<u32>, node_type: Option<&str>, ) -> Result<Vec<ClusterNode>, WazuhApiError>
pub async fn get_cluster_node( &mut self, node_name: &str, ) -> Result<ClusterNode, WazuhApiError>
pub async fn get_cluster_healthcheck( &mut self, ) -> Result<ClusterHealthcheck, WazuhApiError>
pub async fn get_manager_process_status( &mut self, ) -> Result<ProcessStatus, WazuhApiError>
pub async fn get_manager_status( &mut self, ) -> Result<ManagerStatus, WazuhApiError>
pub async fn get_manager_info(&mut self) -> Result<ManagerInfo, WazuhApiError>
pub async fn get_cluster_configuration( &mut self, ) -> Result<Value, WazuhApiError>
pub async fn get_master_nodes( &mut self, ) -> Result<Vec<ClusterNode>, WazuhApiError>
pub async fn get_worker_nodes( &mut self, ) -> Result<Vec<ClusterNode>, WazuhApiError>
pub async fn is_cluster_healthy(&mut self) -> Result<bool, WazuhApiError>
pub async fn get_cluster_statistics(&mut self) -> Result<Value, WazuhApiError>
pub async fn get_local_node_info(&mut self) -> Result<Value, WazuhApiError>
pub async fn restart_manager(&mut self) -> Result<Value, WazuhApiError>
pub async fn get_manager_logs_summary(&mut self) -> Result<Value, WazuhApiError>
Trait Implementations§
Source§impl Clone for ClusterClient
impl Clone for ClusterClient
Source§fn clone(&self) -> ClusterClient
fn clone(&self) -> ClusterClient
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 ClusterClient
impl !RefUnwindSafe for ClusterClient
impl Send for ClusterClient
impl Sync for ClusterClient
impl Unpin for ClusterClient
impl !UnwindSafe for ClusterClient
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