Skip to content

Storage diagnostics (REST)

GET /storage/diagnostics

Read-only, authenticated Admin endpoint. It reports the local cache and database history/audit usage without returning record payloads, tokens or credentials.

http
GET /storage/diagnostics
Authorization: Bearer <admin-jwt>
FieldContents
cache.configGlobal cache policy and model overrides
cache.effective_enabledFalse for disabled or multi-instance bypass
cache.consistencybypass, process-local-write-invalidation, or ttl-bounded-eventual
cache.metricsHits/misses, expiration/eviction, skipped entries, stale-fill rejection, invalidations, relational bypasses, current entries and estimated bytes
history.configFull/off/retained configuration
history.events, history.estimated_bytesCurrent model-event count and estimated row bytes
history.coveragePer-model model, mode, complete, first_gap_at, retained_after, removed_events
audit.configFull/metadata/off and retention configuration
audit.rows, audit.estimated_bytesCurrent audit row count and estimated row bytes
capacity_semanticsReminder that estimates exclude separate database/allocator costs

Successful responses return 200. Missing/invalid authentication returns 401; an authenticated non-admin returns 403; unavailable history/audit diagnostics return 503. Database usage aggregation can scan history/audit tables; poll deliberately, not per application request. Cache statistics apply only to the serving process and reset when it restarts.

The endpoint has no mutation, deletion, retention-trigger or coverage-reset operation. See Storage lifecycle, Caching and Audit API.

Released under the AGPL-3.0 License.