#[non_exhaustive]pub struct ModelMonitoringAlertConfig {
pub enable_logging: bool,
pub notification_channels: Vec<String>,
pub alert: Option<Alert>,
/* private fields */
}Expand description
The alert config for model monitoring.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.enable_logging: boolDump the anomalies to Cloud Logging. The anomalies will be put to json payload encoded from proto ModelMonitoringStatsAnomalies. This can be further synced to Pub/Sub or any other services supported by Cloud Logging.
notification_channels: Vec<String>Resource names of the NotificationChannels to send alert.
Must be of the format
projects/<project_id_or_number>/notificationChannels/<channel_id>
alert: Option<Alert>Implementations§
Source§impl ModelMonitoringAlertConfig
impl ModelMonitoringAlertConfig
pub fn new() -> Self
Sourcepub fn set_enable_logging<T: Into<bool>>(self, v: T) -> Self
pub fn set_enable_logging<T: Into<bool>>(self, v: T) -> Self
Sets the value of enable_logging.
Sourcepub fn set_notification_channels<T, V>(self, v: T) -> Self
pub fn set_notification_channels<T, V>(self, v: T) -> Self
Sets the value of notification_channels.
Sourcepub fn set_alert<T: Into<Option<Alert>>>(self, v: T) -> Self
pub fn set_alert<T: Into<Option<Alert>>>(self, v: T) -> Self
Sets the value of alert.
Note that all the setters affecting alert are mutually
exclusive.
Sourcepub fn email_alert_config(&self) -> Option<&Box<EmailAlertConfig>>
pub fn email_alert_config(&self) -> Option<&Box<EmailAlertConfig>>
The value of alert
if it holds a EmailAlertConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_email_alert_config<T: Into<Box<EmailAlertConfig>>>(
self,
v: T,
) -> Self
pub fn set_email_alert_config<T: Into<Box<EmailAlertConfig>>>( self, v: T, ) -> Self
Sets the value of alert
to hold a EmailAlertConfig.
Note that all the setters affecting alert are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ModelMonitoringAlertConfig
impl Clone for ModelMonitoringAlertConfig
Source§fn clone(&self) -> ModelMonitoringAlertConfig
fn clone(&self) -> ModelMonitoringAlertConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more