WANG пре 5 година
родитељ
комит
bdf6f8c03e
1 измењених фајлова са 31 додато и 26 уклоњено
  1. 31 26
      src/main/resources/api-status.html

+ 31 - 26
src/main/resources/api-status.html

@@ -3,37 +3,42 @@
 <head>
 <meta charset="UTF-8">
 <title>API status</title>
+<script type="text/javascript">
+	function order(order) {
+		location.href = '/actuator/api-status/ignored?order=' + order;
+	}
+</script>
 </head>
 <body>
 	<table style="border: 1px solid blue;" border="1" cellspacing="0">
 		<caption>date: ${dateTime?string('yyyy-MM-dd HH:mm:ss')}</caption>
 		<tr style="">
-			<th onclick="location.href='/actuator/api-status/ignored?order=mapping'">mapping</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=description'">描述</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=count'">请求总数</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=meanRate'">平均速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=oneMinuteRate'">1分钟平均速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=fiveMinuteRate'">5分钟平均速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=fifteenMinuteRate'">15分钟平均速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=min'">最小耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=max'">最大耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=mean'">平均耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=p50'">50%耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=p75'">75%耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=p95'">95%耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=p98'">98%耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=p99'">99%耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=p999'">99.9%耗时(毫秒)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionCount'">异常总数</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionMeanRate'">平均异常速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionOneMinuteRate'">1分钟异常速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionFiveMinuteRate'">5分钟异常速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionFifteenMinuteRate'">15分钟异常速率(tps)</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionPercent'">总异常率</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionMeanPercent'">平均异常率</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionOneMinutePercent'">1分钟异常率</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionFiveMinutePercent'">5分钟异常率</th>
-			<th onclick="location.href='/actuator/api-status/ignored?order=exceptionFifteenMinutePercent'">15分钟异常率</th>
+			<th onclick="order('mapping')">mapping</th>
+			<th onclick="order('description')">描述</th>
+			<th onclick="order('count')">请求总数</th>
+			<th onclick="order('meanRate')">平均速率(tps)</th>
+			<th onclick="order('oneMinuteRate')">1分钟平均速率(tps)</th>
+			<th onclick="order('fiveMinuteRate')">5分钟平均速率(tps)</th>
+			<th onclick="order('fifteenMinuteRate')">15分钟平均速率(tps)</th>
+			<th onclick="order('min')">最小耗时(毫秒)</th>
+			<th onclick="order('max')">最大耗时(毫秒)</th>
+			<th onclick="order('mean')">平均耗时(毫秒)</th>
+			<th onclick="order('p50')">50%耗时(毫秒)</th>
+			<th onclick="order('p75')">75%耗时(毫秒)</th>
+			<th onclick="order('p95')">95%耗时(毫秒)</th>
+			<th onclick="order('p98')">98%耗时(毫秒)</th>
+			<th onclick="order('p99')">99%耗时(毫秒)</th>
+			<th onclick="order('p999')">99.9%耗时(毫秒)</th>
+			<th onclick="order('exceptionCount')">异常总数</th>
+			<th onclick="order('exceptionMeanRate')">平均异常速率(tps)</th>
+			<th onclick="order('exceptionOneMinuteRate')">1分钟异常速率(tps)</th>
+			<th onclick="order('exceptionFiveMinuteRate')">5分钟异常速率(tps)</th>
+			<th onclick="order('exceptionFifteenMinuteRate')">15分钟异常速率(tps)</th>
+			<th onclick="order('exceptionPercent')">总异常率</th>
+			<th onclick="order('exceptionMeanPercent')">平均异常率</th>
+			<th onclick="order('exceptionOneMinutePercent')">1分钟异常率</th>
+			<th onclick="order('exceptionFiveMinutePercent')">5分钟异常率</th>
+			<th onclick="order('exceptionFifteenMinutePercent')">15分钟异常率</th>
 		</tr>
 		<#list data as cur>
 		<tr>