Skip to main content

Module jsonl

Module jsonl 

Source

Structs§

MetricsJsonlOutputConfig
Common JSONL output configuration for one metrics file.
MetricsJsonlWriter
Stateful JSONL writer that validates or writes the canonical header once, then appends compact sample rows without rescanning the whole file.

Constants§

HARDWARE_ARTIFACT_TYPE
Canonical process hardware artifact type.
HEIMDALL_JSONL_SCHEMA
Canonical Heimdall JSONL schema version used by metrics writers.
NETWORK_ARTIFACT_TYPE
Canonical sender-side network artifact type.

Functions§

append_jsonl_sample_row
Appends one compact sample row to a JSONL file with a canonical header.
ensure_single_header
Ensures a JSONL file has exactly one header at the top before samples.
first_non_empty_line
Returns the first non-empty line from a valid canonical JSONL file, if any.
header_json
Builds the canonical header object for a Heimdall JSONL file.
infer_node_id_from_path
Infers a node_id from a metrics file path.
unix_timestamp_secs
Converts a system time to a Unix timestamp in fractional seconds.
validate_existing_header
Validates the existing first non-empty JSONL line as a Heimdall header.