コンテンツにスキップ

Get admin audit log summary

GET
/api/admin/admin-audit-log/stats/summary
Code sample: Shell / cURL
curl --request GET \
--url 'https://auth.example.com/api/admin/admin-audit-log/stats/summary?days=7' \
--header 'Authorization: Bearer <token>'

Returns aggregate audit log counts, result and severity breakdowns, top actions, and most active admins for the requested time window.

days
integer
default: 7 >= 1

Number of days to include in the summary.

Successful JSON response.

Media type application/json
object
total_entries
required
integer
recent_entries
required
integer
time_range_days
required
integer
result_breakdown
required
object
key
additional properties
integer
severity_breakdown
required
object
key
additional properties
integer
top_actions
required
Array<object>
object
key
additional properties
most_active_admins
required
Array<object>
object
key
additional properties
key
additional properties
Example
{
"total_entries": 100,
"recent_entries": 32,
"time_range_days": 7,
"result_breakdown": {
"success": 30,
"failure": 2
},
"severity_breakdown": {
"info": 25,
"warn": 5,
"error": 2
},
"top_actions": [
{
"action": "admin_policy.create",
"count": 5
}
],
"most_active_admins": [
{
"admin_user_id": "admin_123",
"admin_email": "[email protected]",
"action_count": 12
}
]
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}

Error response.

Media type application/json
object
error
string
message
string
error_description
string
key
additional properties
Example generated
{
"error": "example",
"message": "example",
"error_description": "example"
}