|
|
|
@@ -28,6 +28,8 @@ public class AimServiceImpl implements AimService { |
|
|
|
private String aimUrl; |
|
|
|
@Value("${aim.proxyUrl}") |
|
|
|
private String aimProxyUrl; |
|
|
|
@Resource |
|
|
|
private HttpUtils httpUtils; |
|
|
|
|
|
|
|
@Override |
|
|
|
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 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); |
|
|
|
System.out.println("response: " + JacksonUtil.toJSONString(response)); |
|
|
|
if (response == null || response.size() == 0) { |
|
|
|
|