| @@ -28,6 +28,8 @@ public class AimServiceImpl implements AimService { | |||||
| private String aimUrl; | private String aimUrl; | ||||
| @Value("${aim.proxyUrl}") | @Value("${aim.proxyUrl}") | ||||
| private String aimProxyUrl; | private String aimProxyUrl; | ||||
| @Resource | |||||
| private HttpUtils httpUtils; | |||||
| @Override | @Override | ||||
| public List<InsMetricInfoVo> getExpTrainInfos(Integer experimentId) throws Exception { | public List<InsMetricInfoVo> getExpTrainInfos(Integer experimentId) throws Exception { | ||||
| @@ -52,7 +54,7 @@ public class AimServiceImpl implements AimService { | |||||
| } | } | ||||
| String encodedUrlString = URLEncoder.encode("run.experiment==\"" + experimentName + "\"", "UTF-8"); | String encodedUrlString = URLEncoder.encode("run.experiment==\"" + experimentName + "\"", "UTF-8"); | ||||
| String url = aimProxyUrl + "/api/runs/search/run?query=" + encodedUrlString; | String url = aimProxyUrl + "/api/runs/search/run?query=" + encodedUrlString; | ||||
| String s = HttpUtils.sendGet(url, null); | |||||
| String s = httpUtils.sendGet(url, null); | |||||
| List<Map<String, Object>> response = JacksonUtil.parseJSONStr2MapList(s); | List<Map<String, Object>> response = JacksonUtil.parseJSONStr2MapList(s); | ||||
| System.out.println("response: " + JacksonUtil.toJSONString(response)); | System.out.println("response: " + JacksonUtil.toJSONString(response)); | ||||
| if (response == null || response.size() == 0) { | if (response == null || response.size() == 0) { | ||||