public void getValues(MeasurementReport report, Set<MeasurementScheduleRequest> metrics) throws Exception {
if (virt.isConnected()) {
HVInfo hi = virt.getHVInfo();
for (MeasurementScheduleRequest request : metrics) {
if (request.getName().equals("cpus")) {
report.addData(new MeasurementDataTrait(request, "" + hi.nodeInfo.cpus));
} else if (request.getName().equals("memory")) {
report.addData(new MeasurementDataTrait(request, "" + hi.nodeInfo.memory));
} else if (request.getName().equals("memoryUsage")) {
report.addData(new MeasurementDataNumeric(request, virt.getMemoryPercentage()));
} else if (request.getName().equals("cpuUsage")) {
long checked = System.nanoTime();
long cpuNanos = virt.getCPUTime();