curl --request GET \
--url 'http://localhost:8000/metrics/security' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"timestamp": "2026-08-31T14:22:05Z",
"statistics": {},
"recent_events": [
{
"type": "standard",
"threat_level": "string",
"blocked": false,
"path": "string",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Security Metrics
Get security-specific metrics. Requires admin role.
GET
/
metrics
/
security
curl --request GET \
--url 'http://localhost:8000/metrics/security' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"timestamp": "2026-08-31T14:22:05Z",
"statistics": {},
"recent_events": [
{
"type": "standard",
"threat_level": "string",
"blocked": false,
"path": "string",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Get security-specific metrics. Requires admin role.
Response
object
string (date-time)
required
object
required
Counters from the security monitor
Status codes
| Code | Meaning |
|---|---|
200 | Successful response |
401 | Authentication required |
403 | Insufficient permissions |
422 | Validation error |
429 | Rate limit exceeded |
curl --request GET \
--url 'http://localhost:8000/metrics/security' \
--header "Authorization: Bearer $STATESET_AGENTS_API_KEY"
{
"timestamp": "2026-08-31T14:22:05Z",
"statistics": {},
"recent_events": [
{
"type": "standard",
"threat_level": "string",
"blocked": false,
"path": "string",
"timestamp": "2026-08-31T14:22:05Z"
}
]
}
Last modified on August 31, 2026