AlertNotification Class
Alert notification configuration for monitoring jobs
- Inheritance
-
azure.ai.ml.entities._mixins.RestTranslatableMixinAlertNotification
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"]),
)
Spolupracujte s námi na GitHubu
Zdroj tohoto obsahu najdete na GitHubu, kde můžete také vytvářet a kontrolovat problémy a žádosti o přijetí změn. Další informace najdete v našem průvodci pro přispěvatele.
Azure SDK for Python