Count audit events
/ops/audit/statsCounts events in a window of at most 90 days (default the last 7), grouped by action, outcome, actor kind, resource type or UTC day. Filters are the audit list's.
Query parameters
group_bystringrequiredactor_kindstringuser, service, system or anonymous
max length 32actor_idstringactionstringaction_prefixstringresource_typestringorg_idstringoutcomestringsuccess, failure or denied
max length 16fromstring (date-time)Start, inclusive (RFC 3339); default 7 days before to
tostring (date-time)End, exclusive (RFC 3339); default now. At most 90 days after from
Responses
fromstring (date-time)requiredgroup_bystringrequiredgroupsarray of objectrequiredLargest first, at most 50; every day in order for group_by=day
otherinteger (int64)requiredEvents in groups beyond the first 50
tostring (date-time)requiredtotalinteger (int64)requiredcodestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type
codestringrequiredStable machine-readable error code
detailstringHuman-readable explanation
errorsarray of objectField-level validation errors
request_idstringCorrelates with server logs and traces
statusinteger (int64)requiredHTTP status code
titlestringrequiredShort summary of the problem type
typestringURI identifying the problem type