다음을 통해 공유


AlertNotification 클래스

참고

이는 실험적인 클래스이며 언제든지 변경될 수 있습니다. 자세한 내용은 https://aka.ms/azuremlexperimental을 참조하세요.

모니터링 작업에 대한 경고 알림 구성

상속
azure.ai.ml.entities._mixins.RestTranslatableMixin
AlertNotification

생성자

AlertNotification(*, emails: List[str] = None)

Keyword-Only Parameters

emails
Optional[list[str]]

모니터링 경고에 대한 알림을 받을 이메일 주소 목록입니다. 기본값은 None입니다.

예제

모니터링되는 작업에 대한 경고 알림 구성


   from azure.ai.ml.entities import (
       AlertNotification,
       MonitorDefinition,
       MonitoringTarget,
       SparkResourceConfiguration,
   )

   monitor_definition = MonitorDefinition(
       compute=SparkResourceConfiguration(instance_type="standard_e4s_v3", runtime_version="3.2"),
       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"]),
   )