From 93693ab029139a5cab7ee13dae8499068daadf56 Mon Sep 17 00:00:00 2001 From: zhangxin10 Date: Wed, 16 Dec 2015 11:37:32 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E6=88=90=E5=AF=B9=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=8E=9F=E6=96=87=E7=9A=84=E9=A1=B5=E9=9D=A2=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/webapp/ftl/lib/ai.cloud/common.ftl | 415 +++++++++++------- 1 file changed, 247 insertions(+), 168 deletions(-) diff --git a/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl b/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl index 4f31b9810..c33ff42c9 100644 --- a/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl +++ b/skywalking-webui/src/main/webapp/ftl/lib/ai.cloud/common.ftl @@ -10,195 +10,274 @@ <#-- importMenuInfo --> <#macro importMenuInfo menuInfo> <#-- importSearchInfo --> <#macro importSearchInfo isLogin> -<#assign text> -${userInfo} - -<#assign json=text?eval /> + <#assign text> + ${userInfo} + + <#assign json=text?eval /> <#-- importUserInfo --> <#macro importUserInfo userInfo> <#-- dealTraceLog --> <#macro dealTraceLog> -<#if valueList??> -
-
-
- ${traceId!}
- 调度入口IP:${(valueList[0].address)!},开始时间:${beginTime?number_to_datetime},${(valueList?size)!}条调用记录,消耗总时长:${(endTime - beginTime)!'0'} ms。显示原文 -
-
- - - - - - - - - - - - - -<#list valueList as logInfo> -<#if logInfo.colId == "0"> - -<#else> - - - - - - - - + + +
- -   - -
服务名类型状态服务/方法主机信息时间轴
${logInfo.applicationIdStr!}${logInfo.spanTypeName!'UNKNOWN'}${logInfo.statusCodeName!'MISSING'} - ${logInfo.viewPointIdSub!} - ${logInfo.address!} -<#assign totalTime=(endTime-beginTime)*1.15> -
-<#if (logInfo.timeLineList?size=1)> - <#list logInfo.timeLineList as log> - -
-
-
 ${log.cost}ms
- - + <#if valueList??> +
+
+
+ ${traceId!}
+ 调度入口IP:${(valueList[0].address)!},开始时间:${beginTime?number_to_datetime},${(valueList?size)!}条调用记录,消耗总时长:${(endTime - beginTime)!'0'} + ms。显示原文 +
+
+ + + + + + + + + + + + + + <#list valueList as logInfo> + <#if logInfo.colId == "0"> + + <#else> + + + + + + + + - - -
+ +   + +
服务名类型状态服务/方法主机信息时间轴
${logInfo.applicationIdStr!}${logInfo.spanTypeName!'UNKNOWN'}${logInfo.statusCodeName!'MISSING'} + ${logInfo.viewPointIdSub!} + ${logInfo.address!} + <#assign totalTime=(endTime-beginTime)*1.15> +
+ <#if (logInfo.timeLineList?size=1)> + <#list logInfo.timeLineList as log> + +
+
+
 ${log.cost}ms +
+ + -<#if (logInfo.timeLineList?size=2)> - <#if (logInfo.timeLineList[1].startTime) < (logInfo.timeLineList[0].startTime)> - <#--服务端开始时间 小于 客户端开始时间(异常,直接显示服务端时间轴)--> - <#assign a=(logInfo.timeLineList[1].startTime - beginTime)! /> - <#assign b=(logInfo.timeLineList[1].cost)! /> - -
-
-
 ${b}ms
- <#elseif (logInfo.timeLineList[1].startTime >= logInfo.timeLineList[0].startTime) && ((logInfo.timeLineList[1].startTime) <= (logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost))> - <#--服务端开始时间 大于等于 客户端开始时间,并且 小于等于 客户端的结束时间--> - <#if (logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost) <= (logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost)> - <#--服务端结束时间 小于等于 客户端结束时间(客户端时间段包含服务端时间段)--> - <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! /> - <#assign b=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! /> - <#assign c=(logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost - logInfo.timeLineList[1].startTime)! /> - <#assign d=(logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost - logInfo.timeLineList[1].startTime - logInfo.timeLineList[1].cost)! /> - -
-
-
-
-
 ${b}/${c}/${d}ms
- <#else> - <#--服务端开始时间 大于 客户端开始时间(客户端时间轴与服务端时间轴有一部分重合,重合后的部分算为服务端)--> - <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! /> - <#assign b=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! /> - <#assign c=(logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost - logInfo.timeLineList[1].startTime)! /> - -
-
-
-
 ${a}ms->${b}ms->${c}ms
- - <#else> - <#--服务端开始时间 大于 客户端结束始时间(客户端一段时间,一段空格,一段服务端时间)--> - <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! /> - <#assign b=(logInfo.timeLineList[0].cost)! /> - <#assign c=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! /> - <#assign d=(logInfo.timeLineList[1].cost)! /> - -
-
-
-
-
 ${b}/${d}ms
- - -
-
-
-
-
- + <#if (logInfo.timeLineList?size=2)> + <#if (logInfo.timeLineList[1].startTime) < (logInfo.timeLineList[0].startTime)> + <#--服务端开始时间 小于 客户端开始时间(异常,直接显示服务端时间轴)--> + <#assign a=(logInfo.timeLineList[1].startTime - beginTime)! /> + <#assign b=(logInfo.timeLineList[1].cost)! /> + +
+
+
 ${b}ms +
+ <#elseif (logInfo.timeLineList[1].startTime >= logInfo.timeLineList[0].startTime) && ((logInfo.timeLineList[1].startTime) <= (logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost))> + <#--服务端开始时间 大于等于 客户端开始时间,并且 小于等于 客户端的结束时间--> + <#if (logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost) <= (logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost)> + <#--服务端结束时间 小于等于 客户端结束时间(客户端时间段包含服务端时间段)--> + <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! /> + <#assign b=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! /> + <#assign c=(logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost - logInfo.timeLineList[1].startTime)! /> + <#assign d=(logInfo.timeLineList[0].startTime + logInfo.timeLineList[0].cost - logInfo.timeLineList[1].startTime - logInfo.timeLineList[1].cost)! /> + +
+
+
+
+
 ${b}/${c}/${d}ms +
+ <#else> + <#--服务端开始时间 大于 客户端开始时间(客户端时间轴与服务端时间轴有一部分重合,重合后的部分算为服务端)--> + <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! /> + <#assign b=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! /> + <#assign c=(logInfo.timeLineList[1].startTime + logInfo.timeLineList[1].cost - logInfo.timeLineList[1].startTime)! /> + +
+
+
+
 ${a}ms->${b}ms->${c}ms +
+ + <#else> + <#--服务端开始时间 大于 客户端结束始时间(客户端一段时间,一段空格,一段服务端时间)--> + <#assign a=(logInfo.timeLineList[0].startTime - beginTime)! /> + <#assign b=(logInfo.timeLineList[0].cost)! /> + <#assign c=(logInfo.timeLineList[1].startTime - logInfo.timeLineList[0].startTime)! /> + <#assign d=(logInfo.timeLineList[1].cost)! /> + +
+
+
+
+
 ${b}/${d}ms +
+ + +
+
+
+
+
+ <#macro importOriginLog> \ No newline at end of file