Aracılığıyla paylaş


AlertNotification Sınıf

Not

Bu deneysel bir sınıftır ve herhangi bir zamanda değişebilir. Daha fazla bilgi için lütfen bkz. https://aka.ms/azuremlexperimental.

İzleme işleri için uyarı bildirimi yapılandırması

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

Oluşturucu

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

Keyword-Only Parameters

emails
Optional[list[str]]

İzleme uyarıları için bildirim alacak e-posta adreslerinin listesi. Varsayılan değer Yok'tır.

Örnekler

İzlenen bir iş için uyarı bildirimlerini yapılandırma.


   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"]),
   )