Creating Alerts

Set up alerts to monitor your metrics and get notified when data changes unexpectedly.

Alert Types

Threshold Alerts

Trigger when a metric crosses a specified value. Supports operators: >, ≥, <, ≤, =, ≠, BETWEEN.

Revenue < $10,000

Anomaly Detection

Automatically detect unusual values using statistical analysis (Z-score). Configurable sensitivity: low, medium, high.

Orders per hour is anomalous

Trend Alerts

Detect significant changes in metric trends. Configure direction (up, down, either) and percent change threshold.

Revenue down > 20% week-over-week

Freshness Alerts

Monitor data freshness and alert when data becomes stale beyond a specified threshold.

Orders table not updated in 6 hours

Creating an Alert

  1. Navigate to Alerts in your project
  2. Click Create Alert
  3. Select the alert type (threshold, anomaly, trend, freshness)
  4. Choose a metric or data asset to monitor
  5. Configure the condition and threshold
  6. Set the evaluation schedule (how often to check)
  7. Choose notification channels
  8. Click Save

API Example

curl -X POST "https://api.lucaro.dev/v2/alerts" \
  -H "Authorization: Bearer YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Low Revenue Alert",
    "type": "threshold",
    "metric_id": "daily_revenue",
    "condition": {
      "operator": "<",
      "value": 10000
    },
    "schedule_cron": "0 */4 * * *",
    "severity": "critical",
    "notification_channels": ["email", "slack"],
    "recipients": ["analytics-team@company.com"]
  }'

Configuration Options

OptionDescription
schedule_cronCron expression for evaluation frequency
severityinfo, warning, or critical
mute_durationSnooze period after firing (e.g., "1h", "24h")
cooldown_periodMinimum time between notifications
notification_channelsArray of channels: email, slack, webhook

Alert States

OK - Condition not met
Firing - Condition triggered
Muted - Temporarily silenced