@GetMapping("/{id}/sample")
	public Map<String, Object> refreshTestRunning(User user, @PathVariable long id) {
		PerfTest test = checkNotNull(getOneWithPermissionCheck(user, id, false), "given test should be exist : " + id);
		Map<String, Object> map = newHashMap();

		SamplingModel samplingModel = hazelcastService.get(DIST_MAP_NAME_SAMPLING, test.getId());
		if (samplingModel != null) {
			map.put("perf", JsonUtils.deserialize(samplingModel.getRunningSample(), HashMap.class));
			map.put("agent", JsonUtils.deserialize(samplingModel.getAgentState(), HashMap.class));
		}

		String monitoringJson = hazelcastService.get(DIST_MAP_NAME_MONITORING, test.getId());
		if (monitoringJson != null) {
			map.put("monitor", JsonUtils.deserialize(monitoringJson, HashMap.class));
		}

		map.put("status", test.getStatus());
		return map;
	}
Get the running perf test info having the given id.

@param user user
@param id   test id
@return JSON message	containing test,agent and monitor status.
ngrinder-controller/src/main/java/org/ngrinder/perftest/controller/PerfTestApiController.java