24 lines
627 B
Rust
24 lines
627 B
Rust
#[derive(serde::Serialize)]
|
|
pub struct HypervisorInfo {
|
|
pub r#type: String,
|
|
pub hyp_version: u32,
|
|
pub lib_version: u32,
|
|
pub capabilities: String,
|
|
pub free_memory: u64,
|
|
pub hostname: String,
|
|
pub node: HypervisorNodeInfo,
|
|
}
|
|
|
|
#[derive(serde::Serialize)]
|
|
pub struct HypervisorNodeInfo {
|
|
pub cpu_model: String,
|
|
/// Memory size in kilobytes
|
|
pub memory_size: u64,
|
|
pub number_of_active_cpus: u32,
|
|
pub cpu_frequency_mhz: u32,
|
|
pub number_of_numa_cell: u32,
|
|
pub number_of_cpu_socket_per_node: u32,
|
|
pub number_of_core_per_sockets: u32,
|
|
pub number_of_threads_per_core: u32,
|
|
}
|