Prerequisites
Set up the SMTP server:- In the navigation pane, click Model Monitor.
- Click Settings and then click Notification Channels.
- Click Edit.
- Type the SMTP details in the fields provided.
- To use SMTPS instead of SMTP+STARTTLS, switch the Enable TLS toggle to the off position.
- Click Save Mail Config.
Configure global notification settings for monitored models
These notification settings are used for all monitored models that do not override them.- In the navigation pane, click Model Monitor.
- Click the name of the model for which you want to set up notifications.
- Click Notifications.
- If you do not want to Use email address from global settings, switch the toggle to the off position. See Notification Channels.
- Click Edit.
- In the To Addresses field, type or paste a comma- or semicolon-separated list of email addresses.
- Click Save Mail Config.
Override the global notification settings for a monitored model
To use different notification settings for specific models, you can override the global notification settings:- In the navigation pane, click Model Monitor.
- Click Settings and then click Notification Channels.
- Click Edit.
- Type the SMTP details in the fields provided.
- Type or paste a comma- or semicolon-separated list of email addresses.
- To use SMTPS instead of SMTP+STARTTLS, switch the Enable TLS toggle to the off position.
- Click Save Mail Config.
Send notifications with the API
In your project code, you can use the Domino API to send alerts or notifications. The/api/metricAlerts/v1 REST API endpoint sends email when any of your monitoring metrics falls outside the thresholds you have defined in your code. Deploy the code in a job (for one-time execution) or as a scheduled job (for continuous evaluation) to compute your model’s metrics and send alerts.
Alerts are sent to the recipients configured in the global notification settings for monitored models, except for models that override those notification settings as described above.
When notifications are sent using the API, Domino uses the SMTP server for global notifications, not the server configured for model monitoring notifications.
/api/metricAlerts/v1 endpoint.
You need your API key to access this endpoint.
condition are:
-
lessThan -
lessThanEqual -
greaterThan -
greaterThanEqual -
between
description string to include in the notifications.