AlertNotification Class
Alert notification configuration for monitoring jobs
Constructor
AlertNotification(*, emails: List[str] | None = None)
Keyword-Only Parameters
Name | Description |
---|---|
emails
|
A list of email addresses that will receive notifications for monitoring alerts. Defaults to None. Default value: None
|
Examples
Configuring alert notifications for a monitored job.
from azure.ai.ml.entities import (
AlertNotification,
MonitorDefinition,
MonitoringTarget,
SparkResourceConfiguration,
)
monitor_definition = MonitorDefinition(
compute=SparkResourceConfiguration(instance_type="standard_e4s_v3", runtime_version="3.4"),
monitoring_target=MonitoringTarget(
ml_task="Classification",
endpoint_deployment_id="azureml:fraud_detection_endpoint:fraud_detection_deployment",
),
alert_notification=AlertNotification(emails=["[email protected]", "[email protected]"]),
)