Structs§
- Metrics
Jsonl Output Config - Common JSONL output configuration for one metrics file.
- Metrics
Jsonl Writer - 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_idfrom 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.