Admin functions glance
const url = 'https://api.deploybase.eu/api/v1/api/v1/admin/functions';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Query Parameters
Section titled “ Query Parameters ”24h (default), 7d or 30d
Responses
Section titled “ Responses ”OK
object
object
object
object
Bucket is the width of one bar: hour for 24h, day for 7d and 30d.
Buckets is the start of each bar, oldest first; every series below aligns with it.
object
object
object
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.
object
object
object
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.
object
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
object
object
object
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.
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
object
object
object
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.
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
object
object
object
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.
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
object
object
object
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.
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
object
object
object
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.
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