Represents the statistics of a jsonl file

interface FileStats {
    appendErrors: number;
    appendSuccesses: number;
    creationTimestamp: string;
    currentSize: number;
    fileName: string;
    filePath: string;
    handler: string;
    isActive: boolean;
    lastError?: Crash;
    lastModifiedTimestamp: string;
    lastRotationTimestamp: string;
    numberLines: number;
    onError: boolean;
    rotationCount: number;
}

Properties

appendErrors: number

Number of append errors

appendSuccesses: number

Number of append successes in active file

creationTimestamp: string

Creation timestamp

currentSize: number

Current size in bytes

fileName: string

File name

filePath: string

File path

handler: string

File handler

isActive: boolean

Flag to indicate if the file is active

lastError?: Crash

Last error

lastModifiedTimestamp: string

Last modified timestamp

lastRotationTimestamp: string

Last rotation timestamp

numberLines: number

Number of lines

onError: boolean

Flag to indicate if the last operation was an error

rotationCount: number

Number of rotations