Source
pub async fn admin_send_alert( &self, message: String, label: String, log_level: String, ) -> Result<AdminSendAlertResponse, KineticaError>
Send an alert to the monitoring system
Sends a user generated alert to the monitoring system.
message- Alert message body.label- Label to add to alert message.log_level- Alert message logging criteria.
Source
pub async fn admin_send_alert_with_opts( &self, message: String, label: String, log_level: String, options: AdminSendAlertRequestOptions, ) -> Result<AdminSendAlertResponse, KineticaError>
Send an alert to the monitoring system
Sends a user generated alert to the monitoring system.
message- Alert message body.label- Label to add to alert message.log_level- Alert message logging criteria.options- The optional parameters; any left unset take the server’s defaults.
Source
pub async fn admin_send_alert_raw( &self, request: &AdminSendAlertRequest, ) -> Result<AdminSendAlertResponse, KineticaError>
Sends a pre-built AdminSendAlertRequest to the /admin/send/alert endpoint.
Source
pub async fn admin_send_alert_from_url( &self, url: &str, request: &AdminSendAlertRequest, ) -> Result<AdminSendAlertResponse, KineticaError>
Sends a pre-built AdminSendAlertRequest to a specific worker URL, bypassing HA head-node selection. Used for multi-head access.