Skip to content
Hayonix

API reference · Schema

ServerlessWorkerLogs

  • objectstringrequired

    Always `serverless_worker_logs`: the type of this object

    One ofserverless_worker_logs

  • dataarray of objectrequired

    The items

    Show 4 fields of data
    • worker_idstringrequired

      ID of the worker

    • sourcestringrequired

      Where the text came from: `stdout` or `stderr` of the container, or `system` (a message from the platform about the container)

      One ofstdoutstderrsystem

    • streamstringrequireddeprecated

      Deprecated: read `source`, which carries the same information

    • textstringrequired

      The logged text, as written by the container

  • next_cursorany JSON | nullrequired

    Always null: the tail is one page

  • errorsarray of objectrequired

    Workers whose logs could not be read (for example not placed on a host yet), with the reason; the other workers are still returned

    Show 2 fields of errors
    • worker_idstringrequired

      ID of the worker

    • messagestringrequired

      One 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