Data exchange format for log lines with block metadata from KOS topics.

Used in topic handlers for log line events, containing both the actual log lines and the block metadata. Extends LogBlockType with the lines array.

interface LogLinesType {
    nodeId: string;
    stream: string;
    blockNum: number;
    startLineNum: number;
    endLineNum: number;
    startTime: number;
    endTime: number;
    lineCount: number;
    lines: string[];
}

Properties

nodeId: string

Node identifier where the log block originates

stream: string

Name of the log stream this block belongs to

blockNum: number

Sequential block number within the stream

startLineNum: number

Global line number where this block starts

endLineNum: number

Global line number where this block ends

startTime: number

Timestamp when this log block period began (milliseconds since epoch)

endTime: number

Timestamp when this log block period ended (milliseconds since epoch)

lineCount: number

Total number of log lines in this block

lines: string[]

Array of actual log line strings