-
Notifications
You must be signed in to change notification settings - Fork 236
/
azure.ai.ml.entities.AlertNotification.yml
33 lines (32 loc) · 1.86 KB
/
azure.ai.ml.entities.AlertNotification.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
### YamlMime:PythonClass
uid: azure.ai.ml.entities.AlertNotification
name: AlertNotification
fullName: azure.ai.ml.entities.AlertNotification
module: azure.ai.ml.entities
inheritances:
- azure.ai.ml.entities._mixins.RestTranslatableMixin
summary: Alert notification configuration for monitoring jobs
constructor:
syntax: 'AlertNotification(*, emails: List[str] | None = None)'
keywordOnlyParameters:
- name: emails
description: 'A list of email addresses that will receive notifications for monitoring
alerts.
Defaults to None.'
types:
- <xref:typing.Optional>[<xref:typing.List>[<xref:str>]]
examples:
- "Configuring alert notifications for a monitored job.<!--[!code-python[Main](les\\\
ml_samples_spark_configurations.py )]-->\n\n<!-- literal_block {\"ids\": [], \"\
classes\": [], \"names\": [], \"dupnames\": [], \"backrefs\": [], \"source\": \"\
C:\\\\hostedtoolcache\\\\windows\\\\Python\\\\3.11.9\\\\x64\\\\Lib\\\\site-packages\\\
\\py2docfx\\\\dist_temp\\\\8\\\\azure_ai_ml-1.18.0\\\\samples\\\\ml_samples_spark_configurations.py\"\
, \"xml:space\": \"preserve\", \"force\": false, \"language\": \"python\", \"highlight_args\"\
: {\"linenostart\": 1}, \"linenos\": false} -->\n\n````python\n\n from azure.ai.ml.entities\
\ import (\n AlertNotification,\n MonitorDefinition,\n MonitoringTarget,\n\
\ SparkResourceConfiguration,\n )\n\n monitor_definition = MonitorDefinition(\n\
\ compute=SparkResourceConfiguration(instance_type=\"standard_e4s_v3\", runtime_version=\"\
3.2\"),\n monitoring_target=MonitoringTarget(\n ml_task=\"Classification\"\
,\n endpoint_deployment_id=\"azureml:fraud_detection_endpoint:fraud_detection_deployment\"\
,\n ),\n alert_notification=AlertNotification(emails=[\"abc@example.com\"\
, \"def@example.com\"]),\n )\n\n\n ````\n"