Alerts & Notifications
Set up alert rules to get notified via Discord or email when critical metrics change. Alerts run automatically on a schedule and compare current values against a configurable baseline window.
Alert Types
Section titled “Alert Types”| Type | Trigger Condition | Use Case |
|---|---|---|
| Crash Spike | Error count exceeds X% of baseline | Detect crash loops after updates |
| Revenue Drop | Daily revenue falls below X% of baseline | Catch payment issues early |
| DAU Drop | Active users drop below X% of estimated average | Spot retention problems |
| Retention Drop | Day-7 retention of recent cohorts below X% of baseline | Onboarding regression |
| Log Error Spike | Log errors+warnings exceed X% of baseline | Remote logging anomalies |
Creating an Alert Rule
Section titled “Creating an Alert Rule”- Go to Configuration > Alerts
- Click New Alert
- Configure:
- Name: Descriptive name (e.g. “Post-Update Crash Watch”)
- Type: Select alert type
- Threshold: Multiplier or percentage (e.g. 2.0 = trigger when 2x baseline)
- Comparison Window: Baseline period (24h, 72h, 1 week, 1 month)
- Email: Notification email address
- Discord Webhook: Optional Discord webhook URL
- Click Save
Threshold Logic
Section titled “Threshold Logic”- Spike types (Crash Spike, Log Error Spike): Trigger when current value >= baseline * threshold. A threshold of
2.0means “trigger at 200% of normal”. - Drop types (Revenue, DAU, Retention): Trigger when current value < baseline * threshold. A threshold of
0.7means “trigger when below 70% of normal”.
Discord Webhook Setup
Section titled “Discord Webhook Setup”- In Discord: Server Settings > Integrations > Webhooks > New Webhook
- Copy the webhook URL (starts with
https://discord.com/api/webhooks/...) - Paste into the alert rule’s Discord Webhook field
- Use Test Webhook to verify the connection
Alerts appear as rich embeds with color-coded types:
| Type | Embed Color |
|---|---|
| Crash Spike | Red |
| Log Error Spike | Dark Red |
| Revenue Drop | Orange |
| DAU Drop | Blue |
| Retention Drop | Purple |
Alert History
Section titled “Alert History”The History tab shows all triggered alerts with:
- Alert Name and type
- Change % from baseline
- Delivery Status (email sent, webhook sent, errors)
- Triggered At timestamp
Cooldown
Section titled “Cooldown”Alerts have a 1-hour cooldown per rule to prevent notification spam. After triggering, the same rule won’t fire again for at least 60 minutes.
API Reference
Section titled “API Reference”# List alert rules for a gamecurl "https://api.questdata.io/v1/alerts?game_id=GAME_ID" \ -H "Authorization: Bearer YOUR_JWT"
# Create an alert rulecurl -X POST "https://api.questdata.io/v1/alerts" \ -H "Authorization: Bearer YOUR_JWT" \ -H "Content-Type: application/json" \ -d '{ "game_id": "GAME_ID", "name": "Log Error Watch", "type": "log_error_spike", "threshold": 2.0, "comparison_window_hours": 168, "email": "dev@example.com", "discord_webhook_url": "https://discord.com/api/webhooks/..." }'
# Get alert historycurl "https://api.questdata.io/v1/alerts/history?game_id=GAME_ID&limit=50" \ -H "Authorization: Bearer YOUR_JWT"
# Test Discord webhookcurl -X POST "https://api.questdata.io/v1/alerts/RULE_ID/test-webhook" \ -H "Authorization: Bearer YOUR_JWT"Best Practices
Section titled “Best Practices”- Start with Crash Spike + Log Error Spike — these catch the most urgent issues
- Use a 1-week comparison window (168h) for stable baselines
- Set threshold to 2.0-3.0 for spikes — lower values cause false positives
- Set threshold to 0.5-0.7 for drops — catch significant declines without noise
- Connect Discord for instant visibility — email has delivery delays
- Test your webhook before relying on it for production alerts