AlertNotification Class

Alert notification configuration for monitoring jobs

Inheritance
azure.ai.ml.entities._mixins.RestTranslatableMixin
AlertNotification

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.

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.3"),
       monitoring_target=MonitoringTarget(
           ml_task="Classification",
           endpoint_deployment_id="azureml:fraud_detection_endpoint:fraud_detection_deployment",
       ),
       alert_notification=AlertNotification(emails=["abc@example.com", "def@example.com"]),
   )