Skip to content

Admin functions glance

GET
/api/v1/admin/functions
curl --request GET \
--url https://api.deploybase.eu/api/v1/api/v1/admin/functions \
--header 'Authorization: <Authorization>'

The admin functions page (DEP-999): is anything going bad, and who is active, read from Postgres only (no Cockpit call). A verdict (how many checks ask for a look), three figures for customer teams (requests, normal p95 and cold-start p50 from merged histogram buckets, null when not measured), a requests series, six checks in a fixed order (platform_errors, timeouts, cold_wait_failed, cold_start_wait, ceiling, failed_to_start; the first three are platform-wide, the rollup has no team column), customer teams with requests sorted by requests with their functions, teams awake without requests, and our own teams’ requests (teams.internal), left out of everything else. period 24h has a bar per closed hour; 7d and 30d a bar per UTC day ending today. measured_since is set when the stored usage starts inside the period.

period
string

24h (default), 7d or 30d

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
awake_idle
Array<object>
object
name
string
team_id
string
bucket

Bucket is the width of one bar: hour for 24h, day for 7d and 30d.

string
buckets

Buckets is the start of each bar, oldest first; every series below aligns with it.

Array<string>
checks
Array<object>
object
items
Array<object>
object
count
integer
function_label
string
seconds
integer
team_id
string
team_name
string
key
string
status
string
total
integer
value
number
figures
object
cold_start_p50_seconds
number
normal_p95_seconds
number
requests
integer
from
string
generated_at
string
measured_since

MeasuredSince is the first stored usage hour when it falls inside the period, so the page can say the data is shorter than the period; null when the period is fully covered.

string
ours
object
requests
integer
period
string
requests_series
Array<integer>
teams
Array<object>
object
ceiling_hits
integer
cold_requests
integer
functions
Array<object>
object
environment
string
function_id
string
kind
string
label
string
project_name
string
requests
integer
series
Array<integer>
instance_seconds

InstanceSeconds, ColdRequests and CeilingHits sum the same rows as Requests: what the team’s functions cost to keep up, how often its visitors waited on a cold start, and how often it wanted more instances than its plan allows.

integer
name
string
plan
string
requests
integer
series
Array<integer>
team_id
string
through
string
verdict
object
to_look_at
integer

Example generated

{
"data": {
"awake_idle": [
{
"name": "example",
"team_id": "example"
}
],
"bucket": "example",
"buckets": [
"example"
],
"checks": [
{
"items": [
{
"count": 1,
"function_label": "example",
"seconds": 1,
"team_id": "example",
"team_name": "example"
}
],
"key": "example",
"status": "example",
"total": 1,
"value": 1
}
],
"figures": {
"cold_start_p50_seconds": 1,
"normal_p95_seconds": 1,
"requests": 1
},
"from": "example",
"generated_at": "example",
"measured_since": "example",
"ours": {
"requests": 1
},
"period": "example",
"requests_series": [
1
],
"teams": [
{
"ceiling_hits": 1,
"cold_requests": 1,
"functions": [
{
"environment": "example",
"function_id": "example",
"kind": "example",
"label": "example",
"project_name": "example",
"requests": 1,
"series": [
1
]
}
],
"instance_seconds": 1,
"name": "example",
"plan": "example",
"requests": 1,
"series": [
1
],
"team_id": "example"
}
],
"through": "example",
"verdict": {
"to_look_at": 1
}
},
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Bad Request

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Unauthorized

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Forbidden

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Internal Server Error

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Service Unavailable

Media type application/json
object
code
string
details
docs_url
string
error
string
meta
object
request_id
string
timestamp
string
trace_id
string
next_actions
Array<object>
object
action
string
cli
string
description
string
http
string
tool
string
reason

The structured outcome (ADR-030, DEP-965). Optional and additive: only the operations endpoints fill them so far, and a client that does not know them reads the rest as before.

string
who_acts
string

Example generated

{
"code": "example",
"details": "example",
"docs_url": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
},
"next_actions": [
{
"action": "example",
"cli": "example",
"description": "example",
"http": "example",
"tool": "example"
}
],
"reason": "example",
"who_acts": "example"
}

Live 582ac705 built