pub struct Telemetry {
pub timestamp: u64,
pub system: SystemInfo,
pub hardware: HardwareInfo,
pub services: ServiceInfo,
pub network: NetworkInfo,
}Expand description
Full system telemetry snapshot.
Contains four sub-structures: SystemInfo, HardwareInfo,
ServiceInfo, and NetworkInfo, plus a Unix timestamp.
Fields§
§timestamp: u64Unix timestamp (seconds) when the snapshot was taken.
system: SystemInfoBasic system information (CPU model, RAM, disk, uptime, load).
hardware: HardwareInfoSpecial hardware devices (TPU, GPU, JAX availability).
services: ServiceInfoService status (vLLM version, running state, port binding).
network: NetworkInfoNetwork state (public IP, tunnel status).
Implementations§
Source§impl Telemetry
impl Telemetry
Sourcepub fn capture() -> Self
pub fn capture() -> Self
Captures a full system telemetry snapshot.
Results are cached for 5 seconds to avoid running 15+ shell subprocesses on repeated calls. Network queries (public_ip, tunnel) are skipped when returning a cached value.
Sourcepub fn print_report(&self)
pub fn print_report(&self)
Prints telemetry in a human-readable report to stdout.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Telemetry
impl<'de> Deserialize<'de> for Telemetry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Telemetry
impl RefUnwindSafe for Telemetry
impl Send for Telemetry
impl Sync for Telemetry
impl Unpin for Telemetry
impl UnsafeUnpin for Telemetry
impl UnwindSafe for Telemetry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more