Bases: object
Class to invoke vSphere APIs calls.
vSphere APIs calls are required by various pollsters, collecting data from VMware infrastructure.
Method returns the ID of VC performance counter by its full name.
A VC performance counter is uniquely identified by the tuple {‘Group Name’, ‘Counter Name’, ‘Rollup Type’}. It will have an id - counter ID (changes from one VC to another), which is required to query performance stats from that VC. This method returns the ID for a counter, assuming ‘CounterFullName’ => ‘Group Name:CounterName:RollupType’.
Method queries the aggregated real-time stat value for a VM.
This method should be used for aggregate counters.
Parameters: |
|
---|---|
Returns: | the aggregated stats value for the counter |
Method queries the real-time stat values for a VM, for all devices.
This method should be used for device(non-aggregate) counters.
Parameters: |
|
---|---|
Returns: | a map containing the stat values keyed by the device ID/name |