'Return data about VM diagnostics.'

def get_diagnostics(self, instance):

    vm_ref = self._get_vm_opaque_ref(instance)
    vm_rec = self._session.call_xenapi('VM.get_record', vm_ref)
    return vm_utils.compile_diagnostics(vm_rec)
