OriginChainDB
Database endpoints

Read query statistics

Read query counts, latency, row counts and cache hits.

GET /v1/tenants/{tenant}/query-stats

Inspect grouped query statisticsAn empty fingerprint list is not proof every query succeeded.
  1. Request query statisticsRead the process's observed query summary.
  2. Inspect each fingerprintCompare calls, latency, row counts and cache hits.
  3. Check the collection startUse since_unix to understand the covered history.

Before you start

Use your database bearer token.

Connection setup

Path parameters

FieldTypeRequired
tenantstringRequired

Headers

FieldTypeRequiredDescription
x-oc-db-userstringOptionalActing database user (role, grant and row-policy checks). Send with x-oc-db-key.
x-oc-db-keystringOptionalAPI key of the x-oc-db-user user.

Returns per-fingerprint statistics for the tenant's read queries (call count, latency percentiles, average rows and cache-hit rate), collected in memory since the server last started.

Read the result

since_unix gives the collection start and fingerprints groups observed query statistics. An empty list means there are no reported fingerprint entries, not proof that every query succeeded.

Response statuses

HTTP status reference
StatusWhat to do
200OK
400Correct the request before retrying.
401Check the credential and Authorization header.
402Check feature access or available credits.
403Check tenant access, roles and permissions.
429Honor Retry-After when present; back off.
500Check the outcome before retrying a write.
503Honor Retry-After when present; check write outcomes.
© 2026 Silicoyn Technologies Pvt Ltd