DeepchecksModelClient.add_alert_rule_on_existing_monitor#

DeepchecksModelClient.add_alert_rule_on_existing_monitor(monitor_id: int, threshold: float, alert_severity: str = 'medium', greater_than: bool = True) int#

Create an alert based on an existing monitor.

Parameters
monitor_idint

The monitor on which we wise to add an alert.

thresholdfloat

The value to compare the check value to.

alert_severitystr, default: “medium”

The severity level associated with the alert. Possible values are: critical, high, mid and low.

greater_thanbool, default: True

Whether the alert condition requires the check value to be larger or smaller than provided threshold.

Returns
int

The alert id.