summaryrefslogtreecommitdiffstats
path: root/libvirt-override-api.xml
diff options
context:
space:
mode:
authorPeter Krempa <pkrempa@redhat.com>2011-11-28 18:19:27 +0100
committerPeter Krempa <pkrempa@redhat.com>2011-12-05 12:22:33 +0100
commit37f6644416d061ad47b550e96e6f78c18907bd3b (patch)
treeb83c8fab372e253925d58c9b215b2c45bfb47b08 /libvirt-override-api.xml
parent4d6d685288f849db152fcd8e5985fc7605764606 (diff)
downloadlibvirt-python-v6-37f6644416d061ad47b550e96e6f78c18907bd3b.tar.gz
libvirt-python-v6-37f6644416d061ad47b550e96e6f78c18907bd3b.tar.xz
libvirt-python-v6-37f6644416d061ad47b550e96e6f78c18907bd3b.zip
python: Expose binding for virNodeGetCPUStats()
This patch adds binding for virNodeGetCPUStats method of libvirtd. Return value is represented as a python dictionary mapping field names to values.
Diffstat (limited to 'libvirt-override-api.xml')
-rw-r--r--libvirt-override-api.xml7
1 files changed, 7 insertions, 0 deletions
diff --git a/libvirt-override-api.xml b/libvirt-override-api.xml
index 6aad49c..9cc7840 100644
--- a/libvirt-override-api.xml
+++ b/libvirt-override-api.xml
@@ -77,6 +77,13 @@
<return type='int *' info='the list of information or None in case of error'/>
<arg name='conn' type='virConnectPtr' info='pointer to the hypervisor connection'/>
</function>
+ <function name='virNodeGetCPUStats' file='python'>
+ <info>Extract node's CPU statistics.</info>
+ <return type='virNodeCPUStats' info='dictionary mapping field names to values or None in case of error'/>
+ <arg name='conn' type='virConnectPtr' info='pointer to hypervisor connection'/>
+ <arg name='cpuNum' type='int' info='number of node cpu. (VIR_NODE_CPU_STATS_ALL_CPUS means total cpu statistics)'/>
+ <arg name='flags' type='unsigned int' info='additional flags'/>
+ </function>
<function name='virDomainGetUUID' file='python'>
<info>Extract the UUID unique Identifier of a domain.</info>
<return type='char *' info='the 16 bytes string or None in case of error'/>