API reference · Schema
ServerlessWorkerLogs
objectstringrequiredAlways `serverless_worker_logs`: the type of this object
One of
serverless_worker_logsdataarray of objectrequiredThe items
ShowHide 4 fields of
dataworker_idstringrequiredID of the worker
sourcestringrequiredWhere the text came from: `stdout` or `stderr` of the container, or `system` (a message from the platform about the container)
One of
stdoutstderrsystemstreamstringrequireddeprecatedDeprecated: read `source`, which carries the same information
textstringrequiredThe logged text, as written by the container
next_cursorany JSON | nullrequiredAlways null: the tail is one page
errorsarray of objectrequiredWorkers whose logs could not be read (for example not placed on a host yet), with the reason; the other workers are still returned
ShowHide 2 fields of
errorsworker_idstringrequiredID of the worker
messagestringrequiredOne sentence for people
Example
{
"object": "serverless_worker_logs",
"data": [
{
"worker_id": "string",
"source": "stdout",
"stream": "string",
"text": "string"
}
],
"next_cursor": {},
"errors": [
{
"worker_id": "string",
"message": "string"
}
]
}Used by
- Recent container logs of the endpoint's workers
GET /v1/serverless/endpoints/{endpoint_id}/logs