pub struct AlertHandler { /* private fields */ }
Expand description
Alert handler for managing alerts
Implementations§
Source§impl AlertHandler
impl AlertHandler
pub fn new(client: RestClient) -> Self
Sourcepub async fn list_by_database(&self, bdb_uid: u32) -> Result<Vec<Alert>>
pub async fn list_by_database(&self, bdb_uid: u32) -> Result<Vec<Alert>>
List alerts for a specific database
Sourcepub async fn list_by_node(&self, node_uid: u32) -> Result<Vec<Alert>>
pub async fn list_by_node(&self, node_uid: u32) -> Result<Vec<Alert>>
List alerts for a specific node
Sourcepub async fn list_cluster_alerts(&self) -> Result<Vec<Alert>>
pub async fn list_cluster_alerts(&self) -> Result<Vec<Alert>>
List alerts for the cluster
Sourcepub async fn get_settings(&self, alert_name: &str) -> Result<AlertSettings>
pub async fn get_settings(&self, alert_name: &str) -> Result<AlertSettings>
Get alert settings for a specific alert type
Sourcepub async fn update_settings(
&self,
alert_name: &str,
settings: AlertSettings,
) -> Result<AlertSettings>
pub async fn update_settings( &self, alert_name: &str, settings: AlertSettings, ) -> Result<AlertSettings>
Update alert settings (generic/legacy)
Sourcepub async fn get_database_alert_settings(
&self,
bdb_uid: u32,
) -> Result<DbAlertsSettings>
pub async fn get_database_alert_settings( &self, bdb_uid: u32, ) -> Result<DbAlertsSettings>
Get database alert settings
Sourcepub async fn update_database_alert_settings(
&self,
bdb_uid: u32,
settings: &DbAlertsSettings,
) -> Result<DbAlertsSettings>
pub async fn update_database_alert_settings( &self, bdb_uid: u32, settings: &DbAlertsSettings, ) -> Result<DbAlertsSettings>
Update database alert settings
Sourcepub async fn get_cluster_alert_settings(&self) -> Result<ClusterAlertsSettings>
pub async fn get_cluster_alert_settings(&self) -> Result<ClusterAlertsSettings>
Get cluster alert settings
Sourcepub async fn update_cluster_alert_settings(
&self,
settings: &ClusterAlertsSettings,
) -> Result<ClusterAlertsSettings>
pub async fn update_cluster_alert_settings( &self, settings: &ClusterAlertsSettings, ) -> Result<ClusterAlertsSettings>
Update cluster alert settings
Auto Trait Implementations§
impl Freeze for AlertHandler
impl !RefUnwindSafe for AlertHandler
impl Send for AlertHandler
impl Sync for AlertHandler
impl Unpin for AlertHandler
impl !UnwindSafe for AlertHandler
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