pub struct Telemetry {
pub timestamp: u64,
pub system: SystemInfo,
pub hardware: HardwareInfo,
pub network: NetworkInfo,
}Expand description
Full system telemetry snapshot.
Contains three sub-structures: SystemInfo, HardwareInfo,
and NetworkInfo, plus a Unix timestamp. Service detection has been
removed in favor of raw listening ports in NetworkInfo.
Fields§
§timestamp: u64Unix timestamp (seconds) when the snapshot was taken.
system: SystemInfoBasic system information (CPU, RAM, disk, uptime, load).
hardware: HardwareInfoSpecial hardware devices (TPU, GPU, JAX availability).
network: NetworkInfoNetwork state (public IP, tunnel status, listening ports).
Implementations§
Source§impl Telemetry
impl Telemetry
Sourcepub fn capture() -> Self
pub fn capture() -> Self
Captures a full system telemetry snapshot.
Results are cached for [CACHE_TTL_SECS] (30 seconds) to avoid
repeated filesystem reads on consecutive calls. Network queries
(public_ip, tunnel) are included in the cached value.
Sourcepub fn print_report(&self)
pub fn print_report(&self)
Prints telemetry in a human-readable report to stdout.
Output includes CPU cores, RAM available, machine-parseable uptime seconds, contextualized load average (with core count), raw listening ports, and tunnel PID.