Revision f43c898d src/Ganeti/Query/Node.hs
b/src/Ganeti/Query/Node.hs | ||
---|---|---|
57 | 57 |
\ for detecting reboots by tracking changes") |
58 | 58 |
, ("cnodes", "CNodes", QFTNumber, "cpu_nodes", |
59 | 59 |
"Number of NUMA domains on node (if exported by hypervisor)") |
60 |
, ("cnos", "CNOs", QFTNumber, "cpu_dom0", |
|
61 |
"Number of logical processors used by the node OS (dom0 for Xen)") |
|
60 | 62 |
, ("csockets", "CSockets", QFTNumber, "cpu_sockets", |
61 | 63 |
"Number of physical CPU sockets (if exported by hypervisor)") |
62 | 64 |
, ("ctotal", "CTotal", QFTNumber, "cpu_total", |
... | ... | |
84 | 86 |
J.showJSON $ rpcResNodeInfoBootId res |
85 | 87 |
nodeLiveFieldExtract "cnodes" res = |
86 | 88 |
jsonHead (rpcResNodeInfoHvInfo res) hvInfoCpuNodes |
89 |
nodeLiveFieldExtract "cnos" res = |
|
90 |
jsonHead (rpcResNodeInfoHvInfo res) hvInfoCpuDom0 |
|
87 | 91 |
nodeLiveFieldExtract "csockets" res = |
88 | 92 |
jsonHead (rpcResNodeInfoHvInfo res) hvInfoCpuSockets |
89 | 93 |
nodeLiveFieldExtract "ctotal" res = |
Also available in: Unified diff