SinkResult

Inheritance diagram of SinkResult

SinkResult inheritance diagram

class savant.client.runner.sink.SinkResult(trace_id, log_provider, frame_batch, frame_meta, frame_content, eos)

Result of receiving a message from ZeroMQ socket.

frame_batch, frame_meta+frame_content, and eos are mutually exclusive.

frame_batch: VideoFrameBatch | None

Video frame batch.

frame_meta: VideoFrame | None

Video frame metadata.

frame_content: bytes | None

Video frame content.

eos: EndOfStream | None

End of stream.

logs()

Fetch logs from log provider for this result.

trace_id: str | None

OpenTelemetry trace ID of the message.

log_provider: LogProvider | None

Log provider for to fetch the logs.