Call
| Syntax | Description |
|---|---|
call {function} ... | Call a site script function |
- Multiple functions can be called in a single rule
- Use the
callaction to forward alerts to third-party integrations
Configure site-scripts via Admin > API > Site Scripting
Configure integrations via Admin > Alerting > Integration Settings
Examples
-
Alert on Ping events using
alert_log_event
* * ping4 PING.icmpState = call custom_log_event -
Call multiple site-script functions
* * ping4 PING.icmpState = call custom_log_event custom_alert -
Forward alert to Slack
* * ping4 PING.icmpState = call post_alert_slack