Skip to content

Admin team functions telemetry

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

One team’s functions beta telemetry (DEP-594): 7-day limits hit (the Cockpit kinds body_413 and http_timeout are absent, never zero, when cockpit_available is false), cold starts per HTTP function, the last 8 weeks of usage newest first (weeks without a row are absent) and 7-day cost per HTTP function. A team without functions returns empty arrays and zeros, not 404. Only a database error fails the request.

id
required
string

Team ID (UUID)

OK

Media type application/json
object
data
meta
object
request_id
string
timestamp
string
trace_id
string
data
object
cold_starts
Array<object>
object
boot_ms_p50_7d
integer
boot_ms_p99_7d
integer
function_id
string
function_name
string
owner_email
string
pod_starts_7d
integer
pod_starts_24h
integer
project_name
string
team_id
string
wake_share_24h
number
wakes_7d
integer
wakes_24h
integer
cost
object
background_runtime_seconds_7d
integer
functions
Array<object>
object
function_id
string
function_name
string
gib_seconds_7d
number
memory_request_mib
integer
peak_memory_mib
integer
pod_seconds_7d
integer
project_name
string
http_gib_seconds_7d
number
http_pod_seconds_7d
integer
generated_at
string
limits_hit
object
cockpit_available
boolean
cockpit_reason
string
rows
Array<object>
object
count_7d
integer
count_24h
integer
function_id
string
function_name
string
kind
string
last_hit_at
string
owner_email
string
project_name
string
team_id
string
weekly_usage
Array<object>
object
background_invocations
integer
background_runtime_seconds
integer
http_requests
integer
week_start
string

Example generated

{
"data": {
"cold_starts": [
{
"boot_ms_p50_7d": 1,
"boot_ms_p99_7d": 1,
"function_id": "example",
"function_name": "example",
"owner_email": "example",
"pod_starts_7d": 1,
"pod_starts_24h": 1,
"project_name": "example",
"team_id": "example",
"wake_share_24h": 1,
"wakes_7d": 1,
"wakes_24h": 1
}
],
"cost": {
"background_runtime_seconds_7d": 1,
"functions": [
{
"function_id": "example",
"function_name": "example",
"gib_seconds_7d": 1,
"memory_request_mib": 1,
"peak_memory_mib": 1,
"pod_seconds_7d": 1,
"project_name": "example"
}
],
"http_gib_seconds_7d": 1,
"http_pod_seconds_7d": 1
},
"generated_at": "example",
"limits_hit": {
"cockpit_available": true,
"cockpit_reason": "example",
"rows": [
{
"count_7d": 1,
"count_24h": 1,
"function_id": "example",
"function_name": "example",
"kind": "example",
"last_hit_at": "example",
"owner_email": "example",
"project_name": "example",
"team_id": "example"
}
]
},
"weekly_usage": [
{
"background_invocations": 1,
"background_runtime_seconds": 1,
"http_requests": 1,
"week_start": "example"
}
]
},
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Bad Request

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Unauthorized

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Forbidden

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Internal Server Error

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Service Unavailable

Media type application/json
object
code
string
details
error
string
meta
object
request_id
string
timestamp
string
trace_id
string

Example generated

{
"code": "example",
"details": "example",
"error": "example",
"meta": {
"request_id": "example",
"timestamp": "example",
"trace_id": "example"
}
}

Live 174db30c built