alert
Type: Function
Generate an alert message.
See also
- log: alerts and log messages are similar in
concept and use the same deduplication mechanism which is explained with
examples for the
log()function.
| Argument | Type | Description |
|---|---|---|
name |
string (required) | Name of the alert. |
dedup |
int64 | Suppress same message in this many seconds (default 7200 sec or 2 hours). |
condition |
Any | If specified we ignore the alert unless the condition is true |
Platforms: macOS, Linux, Windows