Evaluate logging quotas
POST
/api/admin/logging-policies/quota/evaluate
Code sample: Shell / cURL
curl --request POST \ --url https://auth.example.com/api/admin/logging-policies/quota/evaluate \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{}'Evaluate active logging quota policies against current usage aggregates and create notification events for non-OK states.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ” Media type application/json
object
key
additional properties
Example
{}Responses
Section titled “ Responses ”Quota evaluation run result.
Media type application/json
object
Example
{ "result": { "evaluated_count": 1, "evaluations": [ { "id": "lqe_123", "quota_policy_id": "lqp_123", "tenant_id": "tenant_123", "tenant_key": null, "log_type": "audit", "plane": "control", "lane": "default", "metric_name": "byte_count", "window_kind": "day", "window_start_at": 1770000000000, "window_end_at": 1770086400000, "value": 850000, "soft_limit": 1000000, "hard_limit": 2000000, "state": "warning", "enforcement_action": "notify", "evaluated_at": 1770001000000, "notification_event_id": "notif_123", "metadata_json": "{\"critical_scope\":false,\"enforcement_mode\":\"warn_only\"}" } ] }, "audit_id": "audit_123"}default
Section titled “default ”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"}