status.ftl
3.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<#import "/spring.ftl" as spring />
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<base href="<@spring.url basePath/>">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>服务注册和发现</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="eureka/css/wro.css">
</head>
<body id="one">
<#include "header.ftl">
<div class="container-fluid xd-container">
<#include "navbar.ftl">
<h1>当前注册的服务实例</h1>
<table id='instances' class="table table-striped table-hover">
<thead style="background-color: #328eba">
<tr><th>应用</th><th>申请</th><th>可用性区域</th><th>状态</th></tr>
</thead>
<tbody>
<#if apps?has_content>
<#list apps as app>
<tr>
<td><b>${app.name}</b></td>
<td>
<#list app.amiCounts as amiCount>
<b>${amiCount.key}</b> (${amiCount.value})<#if amiCount_has_next>,</#if>
</#list>
</td>
<td>
<#list app.zoneCounts as zoneCount>
<b>${zoneCount.key}</b> (${zoneCount.value})<#if zoneCount_has_next>,</#if>
</#list>
</td>
<td>
<#list app.instanceInfos as instanceInfo>
<#if instanceInfo.isNotUp>
<font color=red size=+1><b>
</#if>
<b>${instanceInfo.status}</b> (${instanceInfo.instances?size}) -
<#if instanceInfo.isNotUp>
</b></font>
</#if>
<#list instanceInfo.instances as instance>
<#if instance.isHref>
<a href="${instance.url}" target="_blank">${instance.id}</a>
<#else>
${instance.id}
</#if><#if instance_has_next>,</#if>
</#list>
</#list>
</td>
</tr>
</#list>
<#else>
<tr><td colspan="4">没有可用的实例</td></tr>
</#if>
</tbody>
</table>
<h1>一般信息</h1>
<table id='generalInfo' class="table table-striped table-hover">
<thead>
<tr><th>名称</th><th>值</th></tr>
</thead>
<tbody>
<#list statusInfo.generalStats?keys as stat>
<tr>
<td>${stat}</td><td>${statusInfo.generalStats[stat]!""}</td>
</tr>
</#list>
<#list statusInfo.applicationStats?keys as stat>
<tr>
<td>${stat}</td><td>${statusInfo.applicationStats[stat]!""}</td>
</tr>
</#list>
</tbody>
</table>
<h1>示例信息</h1>
<table id='instanceInfo' class="table table-striped table-hover">
<thead>
<tr><th>名称</th><th>值</th></tr>
<thead>
<tbody>
<#list instanceInfo?keys as key>
<tr>
<td>${key}</td><td>${instanceInfo[key]!""}</td>
</tr>
</#list>
</tbody>
</table>
</div>
<script type="text/javascript" src="eureka/js/wro.js" ></script>
<script type="text/javascript">
$(document).ready(function() {
$('table.stripeable tr:odd').addClass('odd');
$('table.stripeable tr:even').addClass('even');
});
</script>
</body>
</html>