| 1 | package VMOMI::VirtualMachineQuickStats; | ||
| 2 | use parent 'VMOMI::DynamicData'; | ||
| 3 | |||
| 4 | our @class_ancestors = ( | ||
| 5 | 'DynamicData', | ||
| 6 | ); | ||
| 7 | |||
| 8 | our @class_members = ( | ||
| 9 | ['overallCpuUsage', undef, 0, 1], | ||
| 10 | ['overallCpuDemand', undef, 0, 1], | ||
| 11 | ['guestMemoryUsage', undef, 0, 1], | ||
| 12 | ['hostMemoryUsage', undef, 0, 1], | ||
| 13 | ['guestHeartbeatStatus', 'ManagedEntityStatus', 0, ], | ||
| 14 | ['distributedCpuEntitlement', undef, 0, 1], | ||
| 15 | ['distributedMemoryEntitlement', undef, 0, 1], | ||
| 16 | ['staticCpuEntitlement', undef, 0, 1], | ||
| 17 | ['staticMemoryEntitlement', undef, 0, 1], | ||
| 18 | ['privateMemory', undef, 0, 1], | ||
| 19 | ['sharedMemory', undef, 0, 1], | ||
| 20 | ['swappedMemory', undef, 0, 1], | ||
| 21 | ['balloonedMemory', undef, 0, 1], | ||
| 22 | ['consumedOverheadMemory', undef, 0, 1], | ||
| 23 | ['ftLogBandwidth', undef, 0, 1], | ||
| 24 | ['ftSecondaryLatency', undef, 0, 1], | ||
| 25 | ['ftLatencyStatus', 'ManagedEntityStatus', 0, 1], | ||
| 26 | ['compressedMemory', undef, 0, 1], | ||
| 27 | ['uptimeSeconds', undef, 0, 1], | ||
| 28 | ['ssdSwappedMemory', undef, 0, 1], | ||
| 29 | ); | ||
| 30 | |||
| 31 | sub get_class_ancestors { | ||
| 32 | return @class_ancestors; | ||
| 33 | } | ||
| 34 | |||
| 35 | sub get_class_members { | ||
| 36 | my $class = shift; | ||
| 37 | my @super_members = $class->SUPER::get_class_members(); | ||
| 38 | return (@super_members, @class_members); | ||
| 39 | } | ||
| 40 | |||
| 41 | 1; |