pub struct HostInfo {
pub host_id: Option<String>,
pub host_name: Option<String>,
pub host_ip: Option<String>,
pub host_allocation: Option<String>,
pub host_vcpus: Option<u32>,
pub host_cpu_model: Option<String>,
pub host_memory_mib: Option<u64>,
pub host_gpu_model: Option<String>,
pub host_gpu_count: Option<u32>,
pub host_gpu_vram_mib: Option<u64>,
pub host_storage_gb: Option<f64>,
}Expand description
Machine-level host properties collected once at startup. All fields are optional; collection failure is silently swallowed. Used in the Sentinel API registration payload (Section 9.1).
Fields§
§host_id: Option<String>AWS: /sys/class/dmi/id/board_asset_tag; fallback: /etc/machine-id.
host_name: Option<String>Hostname from gethostname(3).
host_ip: Option<String>First non-loopback IPv4 address from getifaddrs(3).
host_allocation: Option<String>"dedicated" or "shared". Heuristic TBD; currently always None.
host_vcpus: Option<u32>Count of logical CPUs from /proc/cpuinfo processor entries.
host_cpu_model: Option<String>CPU model string from /proc/cpuinfo.
host_memory_mib: Option<u64>Total physical RAM: MemTotal / 1024 from /proc/meminfo.
host_gpu_model: Option<String>Name of the first detected GPU/NPU/TPU.
host_gpu_count: Option<u32>Count of detected GPUs.
host_gpu_vram_mib: Option<u64>Sum of vram_total_bytes / 1_048_576 across all GPUs.
Serialized as host_gpu_memory_mib to match the Sentinel API field name.
host_storage_gb: Option<f64>Sum of block device capacities in GB (non-loop, non-ram devices).