[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] Added VM_metrics.get_all.
# HG changeset patch # User Ewan Mellor <ewan@xxxxxxxxxxxxx> # Date 1173906244 0 # Node ID 036e42d1c9bb24763dc8810f3234f6b803263cc3 # Parent 0c354aa0bb4aa66a47729b77d7b16ac27a662d8b Added VM_metrics.get_all. Signed-off-by: Tom Wilkie <tom.wilkie@xxxxxxxxx> --- tools/python/xen/xend/XendAPI.py | 3 +++ tools/python/xen/xend/XendVMMetrics.py | 5 +++++ 2 files changed, 8 insertions(+) diff -r 0c354aa0bb4a -r 036e42d1c9bb tools/python/xen/xend/XendAPI.py --- a/tools/python/xen/xend/XendAPI.py Wed Mar 14 21:02:58 2007 +0000 +++ b/tools/python/xen/xend/XendAPI.py Wed Mar 14 21:04:04 2007 +0000 @@ -1516,6 +1516,9 @@ class XendAPI(object): def _VM_metrics_get(self, ref): return XendVMMetrics.get_by_uuid(ref) + def VM_metrics_get_all(self, _): + return xen_api_success(XendVMMetrics.get_all()) + def VM_metrics_get_record(self, _, ref): return xen_api_success(self._VM_metrics_get(ref).get_record()) diff -r 0c354aa0bb4a -r 036e42d1c9bb tools/python/xen/xend/XendVMMetrics.py --- a/tools/python/xen/xend/XendVMMetrics.py Wed Mar 14 21:02:58 2007 +0000 +++ b/tools/python/xen/xend/XendVMMetrics.py Wed Mar 14 21:04:04 2007 +0000 @@ -31,6 +31,11 @@ class XendVMMetrics: return uuid in instances is_valid_vm_metrics = classmethod(is_valid_vm_metrics) + + def get_all(_): + return instances.keys() + + get_all = classmethod(get_all) def __init__(self, uuid, xend_domain_instance): self.uuid = uuid _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |