DeepchecksModelClient.add_alert_webhook#

DeepchecksModelClient.add_alert_webhook(name: str, https_url: str, http_method: str, description: str = '', http_headers: Optional[Dict[str, str]] = None, notification_levels: Optional[List[str]] = None) int#

Create an alert webhook.

Parameters
namestr

The name of the webhook

https_urlstr

The url of the webhook

http_methodstr

The http method of the webhook expected: GET, POST

descriptionstr, optional

The description of the webhook

http_headersdict, optional

The http headers of the webhook

notification_levelslist, optional

The notification levels of the webhook expected: critical, high, medium, low

Returns
int

The created webhook id