Hanzo AI
OpenapiGit

Create log

Adds console output to a task's log and answers with how far that log is durable, so the runner knows where to resend from.

POST /v1/runner/log

Addresshttps://api.hanzo.ai/v1/runner/log
MethodPOST
Operationpost_runner_log
AuthAuthorization: Bearer $HANZO_API_KEY

Adds console output to a task's log and answers with how far that log is durable, so the runner knows where to resend from.

Request

8 fields, body application/json (required).

FieldInTypeRequiredDescription
x-runner-uuidheaderstring
x-runner-tokenheaderstring
indexbodyinteger (int64)Index is the position of the first line in that log, so a resent batch overlaps rather than duplicates.
lastbodybooleanLast seals the log and moves it to storage.
linesbodyrunner.Line[]Lines is the batch itself.
lines[].contentbodystringContent is the line itself, without its terminator.
lines[].timebodyinteger (int64)Time is when the line was written, in unix nanoseconds.
taskbodyinteger (int64)Task is whose log this is.

Response

StatusBodyMeaning
200runner.LogOutok
defaultproblem-detailsrefused

200 body — 1 field.

FieldInTypeAlwaysDescription
ackbodyinteger (int64)Ack is how far the log is durable — index plus lines accepted — and where the runner resends from.

Failure carries the platform error shape — see Errors.

Examples

hanzo runner log

Git API · All Hanzo APIs · Interactive reference

How is this guide?

On this page