palbaseDocs

Palbase Analytics · API

GET/analytics/perf/timeline

Read performance percentiles over time

One type's samples bucket by bucket, oldest first: p50, p75, p95 and how many samples. A bucket with no sample is not a row; its start is 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 (hours for a window of two days or less, days beyond, unless said).
trace_type"network" | "app_start" | "custom" | "screen" | "web_vital" · requiredThe type: a percentile is of one type's samples (an app start's milliseconds and a CLS's score are never one).
namestring · optionalOnly this measure.
curl
curl -X GET "https://<your-ref>.palbase.studio/analytics/perf/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 GetPerfTimeline of analytics's contract.