Alert Thresholds¶
Get notified when your traffic metrics cross a threshold. Alerts are checked daily during the midnight rollup.
Create an Alert¶
curl -X POST https://antics-api.turtletech.us/api/alerts \
-H "Content-Type: application/json" \
-d '{
"site_id": "YOUR-SITE-ID",
"metric": "visitors",
"operator": "lt",
"threshold": 10,
"email": "you@example.com"
}'
Metrics¶
visitors– daily unique visitorspageviews– daily total pageviewsbounce_rate– daily bounce rate percentage
Operators¶
lt– less than (alert when metric drops below threshold)gt– greater than (alert when metric exceeds threshold)
Webhook Notifications¶
Add a webhook_url to send alerts to Discord, Slack, or any webhook endpoint:
curl -X POST https://antics-api.turtletech.us/api/alerts \
-H "Content-Type: application/json" \
-d '{
"site_id": "YOUR-SITE-ID",
"metric": "visitors",
"operator": "lt",
"threshold": 50,
"email": "you@example.com"
}'
The webhook receives a JSON payload:
{
"text": "Antics alert: example.com visitors < 50 (actual: 23)",
"domain": "example.com",
"metric": "visitors",
"operator": "lt",
"threshold": 50,
"value": 23
}
Dashboard¶
Manage alerts from the Alerts page in the dashboard. Create rules, view trigger history, and delete alerts.