@PreAuthorize("hasAnyRole('A', 'S', 'U')")
	@GetMapping(value = {"/states/", "/states"})
	public List<Map<String, Object>> getStates() {
		List<AgentInfo> agents = agentService.getAllActive();
		List<Map<String, Object>> statuses = newArrayList(agents.size());

		for (AgentInfo each : agents) {
			Map<String, Object> result = newHashMap();
			result.put("id", each.getId());
			result.put("port", each.getPort());
			result.put("icon", each.getState().getCategory().getIconName());
			result.put("state", each.getState());
			statuses.add(result);
		}

		return statuses;
	}
Get the current all agents state.

@return json message
ngrinder-controller/src/main/java/org/ngrinder/agent/controller/AgentManagerApiController.java