Get function stats
Reads traffic, errors, latency and cold starts, rolled up into the step requested. Counters are stored in five-minute buckets and kept for fourteen days.
Authorization
BearerAuth A team API key, created by a team admin in the console and presented as
Authorization: Bearer xk_…. Xeonr Auth issues and verifies it; the
secret is shown once at creation and stored only as a hash, and a
revoked key stops working within 30 seconds. An existing fnt_… token
is accepted the same way.
In: header
Header Parameters
Define the version of the Connect protocol
1Define the timeout, in ms
Request Body
application/json
range_sec is how far back to read; 24 hours by default, 14 days at most.
int64step_sec is the rollup width. Raised to the five-minute storage resolution when finer, and coarsened so at most 500 points are returned.
int64Response Body
application/json
application/json
curl -X POST "https://functions.xeonr.io/xeonr.functions.v1.FunctionService/GetFunctionStats" \ -H "Connect-Protocol-Version: 1" \ -H "Content-Type: application/json" \ -d '{}'{
"series": [
{
"startUnix": 0,
"requests": 0,
"errors4xx": 0,
"errors5xx": 0,
"coldStarts": 0,
"p50Ms": 0,
"p95Ms": 0
}
]
}{
"code": "not_found",
"message": "string",
"details": [
{
"type": "string",
"value": "string",
"debug": {}
}
]
}