Skip to main content

types.StreamState

consumer_countinteger

ConsumerCount tracks the number of active WebSocket consumers for this stream. When this drops to 0, streaming should be disabled.

created_atstring

CreatedAt is when the stream was created

endstring

End is the timestamp until which to stream logs. If zero, logs will be streamed indefinitely (live tailing).

idstring

ID is the unique identifier of the stream state

job_idstring

JobID is the identifier of the job associated with the stream

log_levelstring

LogLevel is the minimum log level to stream (e.g., "info", "error")

node_idstring

NodeID is the identifier of the node associated with the stream and the job

startstring

Start is the timestamp from which to start streaming logs. If zero, logs will be streamed from the current time.

streamingboolean

Streaming indicates whether log streaming is enabled for this job/node

updated_atstring

UpdatedAt is when the stream was last updated

types.StreamState
{
"consumer_count": 0,
"created_at": "string",
"end": "string",
"id": "string",
"job_id": "string",
"log_level": "string",
"node_id": "string",
"start": "string",
"streaming": true,
"updated_at": "string"
}