Anomalies API #
GET /analytics/anomalies #
Returns a paginated list of detected anomalies with filtering options.
URL: GET /wp-json/dmsilm/v1/analytics/anomalies
Parameters:
| Parameter | Type | Default | Description |
|---|---|---|---|
status | string | new | Filter by status: new, investigating, resolved, dismissed |
severity | string | all | Filter by severity: low, medium, high, critical |
limit | integer | 50 | Results per page |
offset | integer | 0 | Pagination offset |
Response:
{
"success": true,
"data": {
"anomalies": [
{
"id": 42,
"metric_name": "mrr",
"current_value": 6800.00,
"expected_value": 9420.00,
"deviation": -27.84,
"anomaly_type": "drop",
"severity": "high",
"status": "new",
"detected_at": "2026-03-22 02:15:00"
}
],
"total": 3
}
}
Status Updates #
Update anomaly status via the admin UI (Anomaly Detection page). Direct status update via REST API is not exposed in v1.
