ALERT()
This page is part of MariaDB's Documentation.
The parent of this page is: Functions for MariaDB Xpand
Topics on this page:
Overview
Send an email alert.
USAGE
ALERT(severity, message)
Argument Name | Description |
---|---|
| An integer that indicates the severity of the error |
| A string that provides the alert message |
DETAILS
ALERT()
is a function that sends an alert via email.
The severity
integer can be in the range of 0 to 3:
Number | Severity |
---|---|
0 | Critical |
1 | Error |
2 | Warning |
3 | Informational |
The return value is NULL
if the arguments are invalid.
EXAMPLES
SELECT ALERT(3, 'This is an info alert test.') AS rc;
+------+
| rc |
+------+
| 0 |
+------+
SELECT ALERT(1, 'This is an error alert test.') AS rc;
+------+
| rc |
+------+
| 0 |
+------+