Skip to content

Commit

Permalink
1. Show Instance Number on AppGroup for Application/System Monitor
Browse files Browse the repository at this point in the history
2. FIX build issue on com.creditease.uav.hook.redis
  • Loading branch information
zxzxzczz committed Jan 4, 2018
1 parent a2fc22c commit 30d34f3
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 3 deletions.
1 change: 1 addition & 0 deletions com.creditease.uav.agent.heartbeat/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/target
/logs
/metadata
/bin/
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,17 @@
!text-shadow: rgba(0,0,0,0.5) 0px 1px 1px;
text-align:left;
background:#f8f8f8;
height:25px;
}

.GroupTag {
font-size: 12px;
color:#888;
display:inline-block;
background:#fff;
padding-left:5px;
padding-right:5px;
border:1px solid #a8a8a8;
border-radius:10px;
height:16px;
}
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,16 @@ function AppHubTabList(_config) {
if (groupObjs[groupId]==undefined) {
var groupElemId=config["id"]+"-group-"+groupId;
groupDiv=HtmlHelper.newElem("div",{"id":groupElemId,"class":"AppHubTabListGroup"});
groupDiv.innerHTML="<div class='GroupTitle' id='"+groupElemId+"_title'>"+groupId+"</div>";
groupDiv.innerHTML="<div class='GroupTitle' id='"+groupElemId+"_title'>"+groupId+"<span class='GroupTag' id='"+groupElemId+"_tag'></span></div>";
groupObjs[groupId]={id:groupId,
elem:function() {

return HtmlHelper.id(groupElemId);

},members:new Map(),elemTitle:function() {
return HtmlHelper.id(groupElemId+"_title");
},elemTag:function() {
return HtmlHelper.id(groupElemId+"_tag");
}};

mdiv.appendChild(groupDiv);
Expand Down Expand Up @@ -160,7 +162,7 @@ function AppHubTabList(_config) {
}
}

//delete group withour any member
//delete group without any member
for(var key in groupObjs) {

var gpElemId=config.id+"-group-"+key;
Expand All @@ -172,6 +174,20 @@ function AppHubTabList(_config) {
delete groupObjs[key];
}
}

//show group tag
for(var key in groupObjs) {

var gpElemId=config.id+"-group-"+key;

var gpElem=HtmlHelper.id(gpElemId);

var childNum=gpElem.children.length-1;

var groupObj=groupObjs[key];

groupObj.elemTag().innerHTML=childNum;
}
};

this.doGroupClick=function(groupId) {
Expand Down
2 changes: 1 addition & 1 deletion com.creditease.uav.hook.redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<dependencies>
<dependency>
<groupId>com.creditease.moniter</groupId>
<artifactId>com.creditease.uav.base</artifactId>
<artifactId>com.creditease.uav.monitorframework</artifactId>

</dependency>
<dependency>
Expand Down

0 comments on commit 30d34f3

Please sign in to comment.