AlertNotification クラス

Note

これは試験段階のクラスであり、いつでも変更される可能性があります。 詳細については、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"]),
   )