Returns active alert counts by severity (from Mimir) and total resolved alert history count (from DB).
Requires read:systems permission.
GET
/alerts/totals
curl \
--request GET 'https://api.your-domain.com/api/alerts/totals' \
--header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
{
"code": 200,
"message": "alert totals retrieved successfully",
"data": {
"active": 42,
"critical": 42,
"warning": 42,
"info": 42,
"history": 42
}
}
Response examples (401)
{
"code": 401,
"message": "invalid token",
"data": {}
}
Response examples (403)
{
"code": 403,
"message": "insufficient permissions",
"data": {}
}