aboutsummaryrefslogtreecommitdiffstats
path: root/tools/libxen/include/xen_vm_metrics.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/libxen/include/xen_vm_metrics.h')
-rw-r--r--tools/libxen/include/xen_vm_metrics.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/libxen/include/xen_vm_metrics.h b/tools/libxen/include/xen_vm_metrics.h
index b03c4d4e3c..d686a7c99f 100644
--- a/tools/libxen/include/xen_vm_metrics.h
+++ b/tools/libxen/include/xen_vm_metrics.h
@@ -66,6 +66,7 @@ typedef struct xen_vm_metrics_record
int64_t memory_actual;
int64_t vcpus_number;
xen_int_float_map *vcpus_utilisation;
+ time_t last_updated;
} xen_vm_metrics_record;
/**
@@ -190,6 +191,13 @@ xen_vm_metrics_get_vcpus_utilisation(xen_session *session, xen_int_float_map **r
/**
+ * Get the last_updated field of the given VM_metrics.
+ */
+extern bool
+xen_vm_metrics_get_last_updated(xen_session *session, time_t *result, xen_vm_metrics vm_metrics);
+
+
+/**
* Return a list of all the VM_metrics instances known to the system.
*/
extern bool