ResourcePoolResourceUsage

ResourcePoolResourceUsage
ResourcePoolResourceUsage

Specifies the resource usage for either memory or CPU.

For CPU the unit is MHz, for memory the unit is bytes.

In the typical case, where a resourcepool is in a consistent state, unreservedForVm will be equal to unreservedForPool. Hence, we can simply say talk about unreserved resources.

If the reservation on the resource pool is not expandable, then the following is true:

           reservation = reservationUsed + unreserved

If the reservation on the resource pool is expandable, then the following is true:

      reservation + parent.unreserved = reservationUsed + unreserved
AllOf
This class requires all of the following:
JSON Example
{
    "_typeName": "string",
    "reservationUsed": 0,
    "reservationUsedForVm": 0,
    "unreservedForPool": 0,
    "unreservedForVm": 0,
    "overallUsage": 0,
    "maxUsage": 0
}
integer As int64 As int64
reservationUsed
Required

Total amount of resources that have been used to satisfy the reservation requirements of all descendants of this resource pool (includes both resource pools and virtual machines).

integer As int64 As int64
reservationUsedForVm
Required

Total amount of resources that have been used to satisfy the reservation requirements of running virtual machines in this resource pool or any of its child resource pools.

integer As int64 As int64
unreservedForPool
Required

Total amount of resources available to satisfy a reservation for a child resource pool.

In the undercommitted state, this is limited by the capacity at the root node. In the overcommitted case, this could be higher since we do not perform the dynamic capacity checks.

integer As int64 As int64
unreservedForVm
Required

Total amount of resources available to satisfy a reservation for a child virtual machine.

In general, this should be the same as unreservedForPool. However, in the overcommitted case, this is limited by the remaining available resources at the root node.

integer As int64 As int64
overallUsage
Required

Deprecated as of vSphere API 6.5. Use overallCpuUsage and hostMemoryUsage.

Close to real-time resource usage of all running child virtual machines, including virtual machines in child resource pools.

integer As int64 As int64
maxUsage
Required

Current upper-bound on usage.

The upper-bound is based on the limit configured on this resource pool, as well as limits configured on any parent resource pool.