palbaseDocs

Palbase Analytics · API

GET/analytics/traces/timeline

Read requests over time

The summary, bucket by bucket — hour by hour unless said, or day by day — oldest first; a bucket with no request is not a row. A row's hour_ms is its bucket's start, an hour's or a day's (unix milliseconds, UTC).

Called by your server, with the project's secret key.

Query

window_secondsinteger · optionalHow far back to look, in seconds (an hour unless said; never past the project's retention).
bucket"hour" | "day" · optionalhour or day: what a row spans (hour unless said).
endpointstring · optionalOnly this path.
source"client" | "backend" · optionalclient or backend.
methodstring · optionalOnly this HTTP method.
statusinteger · optionalOnly this status.
status_class"2xx" | "3xx" | "4xx" | "5xx" · optionalOnly this class of status.
duration_min_msnumber · optionalAt least this long.
duration_max_msnumber · optionalAt most this long.
distinct_idstring · optionalOnly this user's (their distinct id).
request_idstring · optionalOnly this request.
curl
curl -X GET "https://<your-ref>.palbase.studio/analytics/traces/timeline" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200The buckets

400The request is malformed, or what it sends breaks a limit (the error names which: the SDKs' codes)

401No key, or not a key of this project, or a token that is not valid (the edge's answer)

403Not the project's secret key

429The project is sending analytics faster than its per-second limit (rate_limited), or its quota for the period is used up (quota_exceeded); Retry-After says when to try again

503The platform could not take or answer this now; nothing was kept, and retrying is safe (Retry-After)

defaultAn error: the envelope names it (`error`) and explains it (`error_description`).

Operation GetTraceTimeline of analytics's contract.