diff options
Diffstat (limited to 'tools/libxen/include/xen_vm_metrics.h')
-rw-r--r-- | tools/libxen/include/xen_vm_metrics.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/libxen/include/xen_vm_metrics.h b/tools/libxen/include/xen_vm_metrics.h index 4b64b5953e..6dfddf6dfd 100644 --- a/tools/libxen/include/xen_vm_metrics.h +++ b/tools/libxen/include/xen_vm_metrics.h @@ -22,6 +22,7 @@ #include "xen_common.h" #include "xen_int_float_map.h" #include "xen_int_int_map.h" +#include "xen_string_set.h" #include "xen_string_string_map.h" #include "xen_vm_metrics_decl.h" @@ -70,6 +71,7 @@ typedef struct xen_vm_metrics_record xen_int_float_map *vcpus_utilisation; xen_int_int_map *vcpus_cpu; xen_string_string_map *vcpus_params; + struct xen_string_set *state; time_t start_time; time_t last_updated; } xen_vm_metrics_record; @@ -210,6 +212,13 @@ xen_vm_metrics_get_vcpus_params(xen_session *session, xen_string_string_map **re /** + * Get the state field of the given VM_metrics. + */ +extern bool +xen_vm_metrics_get_state(xen_session *session, struct xen_string_set **result, xen_vm_metrics vm_metrics); + + +/** * Get the start_time field of the given VM_metrics. */ extern bool |