Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
qinchao
7 years ago
Commit
6c69d60a8d216894f28c113f9f9365b4df544d3c
1 parent
5e4d858b
可用区hostinfo
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
monitor-ui-common/src/main/java/com/ui/model/req/HostInfoReq.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/AutoScalingCtrl.java
monitor-ui-common/src/main/java/com/ui/model/req/HostInfoReq.java
View file @
6c69d60
...
...
@@ -23,6 +23,8 @@ public class HostInfoReq extends PageRequest {
private
int
cloudType
;
private
int
cloudDetailType
;
private
String
tags
;
private
List
<
String
>
tagsList
;
...
...
monitor-ui-ctrl/src/main/java/com/ui/ctrl/AutoScalingCtrl.java
View file @
6c69d60
...
...
@@ -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
);
...
...
Please
register
or
login
to post a comment