Usage event
Generated from schemas/usage-event.schema.json by scripts/gen-config-docs. Do not edit this page: edit the schema or the generator.
The flat event delivered to subscribed out-of-process plugins. No token, cookie, raw query string, email or username is present.
Fields
| Field | Type | Required | Description |
|---|---|---|---|
integer (fixed: | yes | Event schema version. Always 1 for this contract. | |
string (one of: | yes | Event family. Only subscribed types are produced. | |
string | yes | Event time, RFC 3339 UTC. | |
string | yes | Stable Gate One node identifier (one WAL per node and type). Minimum length: 1. Maximum length: 256. | |
string | yes | Producer epoch, changed on restart/migration so consumers can detect a gap. Minimum length: 1. Maximum length: 128. | |
string | no | Auth provider id or logical tenant; empty for shared/public routes. Maximum length: 128. | |
string | no | Opaque deployment-scoped user identifier: versioned HMAC. Never an email or a raw IdP sub. Pattern: | |
string | no | Normalized route pattern, never the raw URL/query. Maximum length: 512. | |
string | no | Request host, without port. Routes are keyed by (host, path): this disambiguates the same path served on several hosts. Maximum length: 256. | |
string | no | HTTP method for request/error events. Maximum length: 16. | |
integer | no | HTTP status for request/error events. Minimum: 0. Maximum: 599. | |
integer | no | Backend or auth duration in milliseconds. Minimum: 0. | |
integer | no | Response/request size in bytes, as observed by the gateway. Minimum: 0. | |
string (one of: | no | Authentication outcome for the request or auth action. | |
string | no | Auth action: login, login_failed, logout, backchannel_logout, revocation. Audit action: reload, reload_failed, plugin_load. Maximum length: 64. | |
string | no | Free-text context for audit events (plugin name, reload error). Never PII. Maximum length: 256. | |
map of string to string | no | Bounded billing attributes captured from allow-listed query/body fields (or backend hints). Sensitive names are skipped; values are capped. | |
boolean | no | True when attrs were capped (too many keys, or a key/value/total exceeded the limit). | |
string | no | Opaque RP session id for auth events. Maximum length: 128. | |
string | no | MCP tool or operation name, when the event comes from an MCP route. Maximum length: 256. | |
integer | no | Billable/metered units for billing events. Minimum: 0. | |
string (one of: | no | Unit kind for billing events. | |
string | no | Gateway request id, for correlation with logs and traces. Maximum length: 128. | |
string | no | Caller-provided idempotency key, copied only for billing. Maximum length: 128. |