Palbase Analytics · API
/analytics/machines/{name}/trafficRead a machine's requests over time
The requests the edge took to one of the project's machines, bucket by bucket, oldest first — every request to the machine's address, whatever program answers it: by status class, with their median and p95 duration, as the machine's page shows them. A bucket with no request is not a row. Kept 30 days; nothing of who sent a request or what it asked is kept.
Called by your server, with the project's secret key.
Path
namestring · requiredThe machine's name.Query
window_secondsinteger · optionalHow far back to look, in seconds (an hour unless said; 30 days at most — what is kept).bucket"hour" | "day" · optionalhour or day: what a row spans (hours up to two days, days beyond, unless said).curl -X GET "https://<your-ref>.palbase.studio/analytics/machines/<name>/traffic" \
-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 GetMachineTraffic of analytics's contract.