Skip to content

Commit 9a8d9e7

Browse files
author
tao.zhu
committed
add hyper ratio
1 parent 59af460 commit 9a8d9e7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

openstack/compute/v2/hypervisors/results.go

+6
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,12 @@ type Hypervisor struct {
138138

139139
// VCPUsUsed is the number of used vcpus on the hypervisor.
140140
VCPUsUsed int `json:"vcpus_used"`
141+
142+
// CPUAllocationRatio is the ratio of virtual CPUs to physical CPUs.
143+
CPUAllocationRatio float64 `json:"cpu_allocation_ratio"`
144+
145+
// RAMAllocationRatio is the ratio of virtual RAM to physical RAM.
146+
RamAllocationRatio float64 `json:"ram_allocation_ratio"`
141147
}
142148

143149
func (r *Hypervisor) UnmarshalJSON(b []byte) error {

0 commit comments

Comments
 (0)