[Users] oVirt-sdk to fetch individual cpu stats
Deepthi Dharwar
deepthi at linux.vnet.ibm.com
Fri Sep 6 06:12:48 EDT 2013
Hi,
I was trying to get the cpu statistics of a host using the oVirt python
sdk. But beyond a point I am unable to deference to the actual cpu stats
field and the data.
h_list = api.hosts.list()
for h in h_list:
y = h.statistics.list()
for i in y:
print i.get_values()
O/P:
<ovirtsdk.xml.params.Values object at 0x22cbd90>
<ovirtsdk.xml.params.Values object at 0x22cbb90>
<ovirtsdk.xml.params.Values object at 0x22cba90>
<ovirtsdk.xml.params.Values object at 0x22cba10>
<ovirtsdk.xml.params.Values object at 0x22cbf10>
Can some one please let me know how I can get individual fields like
cpu.current.system or cpu.current.idle stats from here.
Thanks!
Deepthi
More information about the Users
mailing list