
6 Sep
2013
6 Sep
'13
12:12 p.m.
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