Files
bare-operating-system/docs/schemas/telemetry-ndjson-record.schema.json
T
2026-04-04 16:58:05 -04:00

33 lines
1.1 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://bare-os.dev/schemas/telemetry-ndjson-record.schema.json",
"title": "Bare OS telemetry NDJSON line (lifecycle v10)",
"type": "object",
"required": ["type", "ts"],
"additionalProperties": true,
"properties": {
"telemetrySchemaVersion": { "type": "integer" },
"lifecycleSchemaVersion": { "type": "integer" },
"type": { "type": "string" },
"ts": { "type": "integer", "minimum": 0 },
"sessionId": { "type": "string" },
"phase": { "type": "string" },
"ms": { "type": "number" },
"bootAttemptId": {
"type": "string",
"maxLength": 128,
"description": "Correlates retries across one boot attempt (BARE_OS_BOOT_ATTEMPT_ID)"
},
"sessionForkGeneration": {
"type": "integer",
"minimum": 0,
"description": "Optional fork generation counter for nested sessions (word 8)"
},
"hypercorePackHrpcLifecycleProbeId": {
"type": "string",
"maxLength": 128,
"description": "Optional operator probe id when BARE_OS_PROBE_ID_HYPERCORE_PACK_HRPC_LIFECYCLE is set (word 11)"
}
}
}