Skip to content

Alerts

Query system alerts with optional filtering.

List Alerts

GET /monitoring/alerts?hours=24&severity=high

Parameters

Parameter Type Default Description
hours int 24 Time window (1-168)
severity string null Filter: info, low, medium, high, critical
resolved bool null Filter by resolution status

Response

{
  "alerts": [
    {
      "id": "alert_20260126_1",
      "severity": "high",
      "title": "Prediction drift detected",
      "message": "hub_height_wind_speed drifted 3.2 std from baseline",
      "source": "drift_detector",
      "timestamp": "2026-01-26T12:00:00Z",
      "resolved": false
    }
  ],
  "summary": {
    "total_24h": 1,
    "unresolved": 1,
    "by_severity": {"critical": 0, "high": 1, "medium": 0, "low": 0, "info": 0}
  },
  "total": 1
}

Drift Detection

GET /monitoring/drift

Runs drift detection on monitored metrics and returns current status.

Metrics

GET /monitoring/metrics?window_minutes=60

Returns latency percentiles, error rates, and request distributions for the specified time window.