Authored by qinchao

可用区hostinfo

... ... @@ -23,6 +23,8 @@ public class HostInfoReq extends PageRequest {
private int cloudType;
private int cloudDetailType;
private String tags;
private List<String> tagsList;
... ...
... ... @@ -669,6 +669,14 @@ public class AutoScalingCtrl {
h.setAlias(String.format("%s-%s-%s",(cloudType == 1 ? "AWS":"Qcloud"), "java-"+ scalingGroupName,ip));
}
h.setCloudType(cloudType);
//暂时无法确定腾讯云的可用区
if(1==h.getCloudType()){
h.setCloudDetailType(1);
}else if(2==h.getCloudType()){
h.setCloudDetailType(2);
}
hostInfos.add(h);
}
resp = httpClient.defaultPost(HttpUriContants.SAVE_HOST_LIST_INFOS ,hostInfos,BaseResponse.class);
... ...