Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
梦中观雨
cat
提交
fce00a6f
C
cat
项目概览
梦中观雨
/
cat
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
C
cat
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
fce00a6f
编写于
4月 13, 2012
作者:
Y
You Yong
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
modify the cat small bug
上级
da7d0dfd
变更
12
隐藏空白更改
内联
并排
Showing
12 changed file
with
139 addition
and
74 deletion
+139
-74
cat-consumer/src/main/java/com/dianping/cat/consumer/ip/IpAnalyzer.java
...rc/main/java/com/dianping/cat/consumer/ip/IpAnalyzer.java
+1
-7
cat-core/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java
...dianping/cat/message/spi/codec/PlainTextMessageCodec.java
+2
-12
cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java
...main/java/com/dianping/cat/report/page/event/Handler.java
+7
-1
cat-home/src/main/java/com/dianping/cat/report/page/ip/Handler.java
...rc/main/java/com/dianping/cat/report/page/ip/Handler.java
+8
-1
cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java
...in/java/com/dianping/cat/report/page/problem/Handler.java
+32
-2
cat-home/src/main/java/com/dianping/cat/report/page/problem/Model.java
...main/java/com/dianping/cat/report/page/problem/Model.java
+56
-40
cat-home/src/main/java/com/dianping/cat/report/page/problem/Payload.java
...in/java/com/dianping/cat/report/page/problem/Payload.java
+4
-0
cat-home/src/main/java/com/dianping/cat/report/page/problem/ProblemStatistics.java
...m/dianping/cat/report/page/problem/ProblemStatistics.java
+7
-6
cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java
...ava/com/dianping/cat/report/page/transaction/Handler.java
+8
-0
cat-home/src/main/resources/META-INF/plexus/components.xml
cat-home/src/main/resources/META-INF/plexus/components.xml
+12
-0
cat-home/src/main/webapp/WEB-INF/web.xml
cat-home/src/main/webapp/WEB-INF/web.xml
+0
-4
cat-home/src/main/webapp/jsp/report/problemTable.jsp
cat-home/src/main/webapp/jsp/report/problemTable.jsp
+2
-1
未找到文件。
cat-consumer/src/main/java/com/dianping/cat/consumer/ip/IpAnalyzer.java
浏览文件 @
fce00a6f
...
...
@@ -97,13 +97,7 @@ public class IpAnalyzer extends AbstractMessageAnalyzer<IpReport> implements Log
if
(
pos
>
0
)
{
return
data
.
substring
(
off
+
TOKEN
.
length
(),
pos
);
}
}
else
{
//TODO remove it after mobileApi upgrade
off
=
data
.
indexOf
(
"RemoteIp="
);
int
pos
=
data
.
indexOf
(
"VirtualIP="
);
return
data
.
substring
(
off
+
"RemoteIp="
.
length
(),
pos
);
}
}
break
;
}
else
if
(
child
instanceof
Heartbeat
)
{
// Heartbeat:<ip>
...
...
cat-core/src/main/java/com/dianping/cat/message/spi/codec/PlainTextMessageCodec.java
浏览文件 @
fce00a6f
...
...
@@ -149,12 +149,7 @@ public class PlainTextMessageCodec implements MessageCodec {
transaction
.
addData
(
data
);
long
d
=
Long
.
parseLong
(
duration
.
substring
(
0
,
duration
.
length
()
-
2
));
if
(
"MobileApi"
.
equals
(
tree
.
getDomain
()))
{
//TODO remove it after MobileApi upgrade
transaction
.
setDurationInMillis
(
d
);
}
else
{
transaction
.
setDurationInMicros
(
d
);
}
transaction
.
setDurationInMicros
(
d
);
if
(
parent
!=
null
)
{
parent
.
addChild
(
transaction
);
...
...
@@ -172,12 +167,7 @@ public class PlainTextMessageCodec implements MessageCodec {
parent
.
addData
(
data
);
long
d
=
Long
.
parseLong
(
duration
.
substring
(
0
,
duration
.
length
()
-
2
));
if
(
"MobileApi"
.
equals
(
tree
.
getDomain
()))
{
//TODO remove it after MobileApi upgrade
parent
.
setDurationInMillis
(
d
);
}
else
{
parent
.
setDurationInMicros
(
d
);
}
parent
.
setDurationInMicros
(
d
);
return
stack
.
pop
();
}
else
{
...
...
cat-home/src/main/java/com/dianping/cat/report/page/event/Handler.java
浏览文件 @
fce00a6f
...
...
@@ -10,6 +10,7 @@ import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
;
import
com.dianping.cat.Cat
;
import
com.dianping.cat.configuration.ServerConfigManager
;
import
com.dianping.cat.consumer.event.StatisticsComputer
;
import
com.dianping.cat.consumer.event.model.entity.EventName
;
import
com.dianping.cat.consumer.event.model.entity.EventReport
;
...
...
@@ -41,6 +42,9 @@ public class Handler implements PageHandler<Context>, Initializable {
@Inject
private
GraphBuilder
m_builder
;
@Inject
private
ServerConfigManager
m_manager
;
private
Map
<
Integer
,
Integer
>
m_map
=
new
HashMap
<
Integer
,
Integer
>();
...
...
@@ -125,7 +129,9 @@ public class Handler implements PageHandler<Context>, Initializable {
public
void
handleOutbound
(
Context
ctx
)
throws
ServletException
,
IOException
{
Model
model
=
new
Model
(
ctx
);
Payload
payload
=
ctx
.
getPayload
();
if
(
StringUtils
.
isEmpty
(
payload
.
getDomain
())){
payload
.
setDomain
(
m_manager
.
getServerConfig
().
getConsole
().
getDefaultDomain
());
}
model
.
setAction
(
payload
.
getAction
());
model
.
setPage
(
ReportPage
.
EVENT
);
model
.
setDisplayDomain
(
payload
.
getDomain
());
...
...
cat-home/src/main/java/com/dianping/cat/report/page/ip/Handler.java
浏览文件 @
fce00a6f
...
...
@@ -12,6 +12,7 @@ import java.util.Map;
import
javax.servlet.ServletException
;
import
com.dianping.cat.Cat
;
import
com.dianping.cat.configuration.ServerConfigManager
;
import
com.dianping.cat.consumer.ip.model.entity.Ip
;
import
com.dianping.cat.consumer.ip.model.entity.IpReport
;
import
com.dianping.cat.consumer.ip.model.entity.Period
;
...
...
@@ -23,6 +24,7 @@ import com.dianping.cat.report.page.model.spi.ModelRequest;
import
com.dianping.cat.report.page.model.spi.ModelResponse
;
import
com.dianping.cat.report.page.model.spi.ModelService
;
import
com.site.lookup.annotation.Inject
;
import
com.site.lookup.util.StringUtils
;
import
com.site.web.mvc.PageHandler
;
import
com.site.web.mvc.annotation.InboundActionMeta
;
import
com.site.web.mvc.annotation.OutboundActionMeta
;
...
...
@@ -31,6 +33,9 @@ import com.site.web.mvc.annotation.PayloadMeta;
public
class
Handler
implements
PageHandler
<
Context
>
{
@Inject
private
JspViewer
m_jspViewer
;
@Inject
private
ServerConfigManager
m_manager
;
@Inject
(
type
=
ModelService
.
class
,
value
=
"ip"
)
private
ModelService
<
IpReport
>
m_service
;
...
...
@@ -70,7 +75,9 @@ public class Handler implements PageHandler<Context> {
public
void
handleOutbound
(
Context
ctx
)
throws
ServletException
,
IOException
{
Model
model
=
new
Model
(
ctx
);
Payload
payload
=
ctx
.
getPayload
();
if
(
StringUtils
.
isEmpty
(
payload
.
getDomain
())){
payload
.
setDomain
(
m_manager
.
getServerConfig
().
getConsole
().
getDefaultDomain
());
}
model
.
setAction
(
Action
.
VIEW
);
model
.
setPage
(
ReportPage
.
IP
);
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/Handler.java
浏览文件 @
fce00a6f
package
com.dianping.cat.report.page.problem
;
import
java.io.IOException
;
import
java.text.DecimalFormat
;
import
java.text.NumberFormat
;
import
java.util.Calendar
;
import
java.util.Map
;
import
javax.servlet.ServletException
;
import
com.dianping.cat.configuration.ServerConfigManager
;
import
com.dianping.cat.configuration.server.entity.Domain
;
import
com.dianping.cat.consumer.problem.model.entity.Machine
;
import
com.dianping.cat.consumer.problem.model.entity.ProblemReport
;
import
com.dianping.cat.report.ReportPage
;
...
...
@@ -14,6 +18,7 @@ import com.dianping.cat.report.page.model.spi.ModelRequest;
import
com.dianping.cat.report.page.model.spi.ModelResponse
;
import
com.dianping.cat.report.page.model.spi.ModelService
;
import
com.site.lookup.annotation.Inject
;
import
com.site.lookup.util.StringUtils
;
import
com.site.web.mvc.PageHandler
;
import
com.site.web.mvc.annotation.InboundActionMeta
;
import
com.site.web.mvc.annotation.OutboundActionMeta
;
...
...
@@ -26,6 +31,9 @@ public class Handler implements PageHandler<Context> {
@Inject
(
type
=
ModelService
.
class
,
value
=
"problem"
)
private
ModelService
<
ProblemReport
>
m_service
;
@Inject
private
ServerConfigManager
m_manager
;
private
int
getHour
(
long
date
)
{
Calendar
cal
=
Calendar
.
getInstance
();
...
...
@@ -78,6 +86,20 @@ public class Handler implements PageHandler<Context> {
}
}
private
void
setDefaultThreshold
(
Model
model
,
Payload
payload
)
{
Domain
d
=
m_manager
.
getServerConfig
().
getConsumer
().
getLongUrl
().
getDomains
().
get
(
payload
.
getDomain
());
if
(
d
!=
null
)
{
int
longUrlTime
=
d
.
getThreshold
();
if
(
longUrlTime
!=
500
&&
longUrlTime
!=
1000
&&
longUrlTime
!=
2000
&&
longUrlTime
!=
3000
&&
longUrlTime
!=
4000
&&
longUrlTime
!=
5000
)
{
double
sec
=
(
double
)
(
longUrlTime
)
/
(
double
)
1000
;
NumberFormat
nf
=
new
DecimalFormat
(
"#.#"
);
String
option
=
"<option value=\""
+
longUrlTime
+
"\""
+
">"
+
nf
.
format
(
sec
)
+
" Sec</option>"
;
model
.
setDefaultThreshold
(
option
);
}
}
}
@Override
@PayloadMeta
(
Payload
.
class
)
@InboundActionMeta
(
name
=
"p"
)
...
...
@@ -90,6 +112,14 @@ public class Handler implements PageHandler<Context> {
public
void
handleOutbound
(
Context
ctx
)
throws
ServletException
,
IOException
{
Model
model
=
new
Model
(
ctx
);
Payload
payload
=
ctx
.
getPayload
();
if
(
StringUtils
.
isEmpty
(
payload
.
getDomain
()))
{
payload
.
setDomain
(
m_manager
.
getServerConfig
().
getConsole
().
getDefaultDomain
());
}
setDefaultThreshold
(
model
,
payload
);
Domain
d
=
m_manager
.
getServerConfig
().
getConsumer
().
getLongUrl
().
getDomains
().
get
(
payload
.
getDomain
());
if
(
d
!=
null
&&
payload
.
getRealLongTime
()
==
0
)
{
payload
.
setLongTime
(
d
.
getThreshold
());
}
model
.
setAction
(
payload
.
getAction
());
model
.
setPage
(
ReportPage
.
PROBLEM
);
...
...
@@ -105,7 +135,7 @@ public class Handler implements PageHandler<Context> {
report
=
getAllIpReport
(
payload
);
model
.
setReport
(
report
);
model
.
setLongDate
(
payload
.
getDate
());
model
.
setAllStatistics
(
new
ProblemStatistics
().
display
AllIp
(
report
,
payload
));
model
.
setAllStatistics
(
new
ProblemStatistics
().
display
ByAllIps
(
report
,
payload
));
}
else
{
switch
(
payload
.
getAction
())
{
case
GROUP:
...
...
@@ -150,7 +180,7 @@ public class Handler implements PageHandler<Context> {
return
;
}
model
.
setReport
(
report
);
model
.
setProblemStatistics
(
new
ProblemStatistics
().
displayByGroupOrThread
(
report
,
model
));
model
.
setProblemStatistics
(
new
ProblemStatistics
().
displayByGroupOrThread
(
report
,
model
,
payload
));
}
private
ProblemReport
showSummary
(
Model
model
,
Payload
payload
)
{
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/Model.java
浏览文件 @
fce00a6f
package
com.dianping.cat.report.page.problem
;
import
java.util.ArrayList
;
import
java.util.Collections
;
import
java.util.List
;
import
com.dianping.cat.consumer.problem.model.entity.ProblemReport
;
...
...
@@ -19,23 +20,29 @@ public class Model extends AbstractReportModel<Action, Context> {
private
String
m_threadId
;
private
int
m_currentMinute
;
// for navigation
private
int
m_threshold
;
private
String
m_groupName
;
private
String
m_defaultThreshold
;
private
GroupLevelInfo
m_groupLevelInfo
;
private
ThreadLevelInfo
m_threadLevelInfo
;
private
ProblemStatistics
m_problemStatistics
;
private
ProblemStatistics
m_allStatistics
;
private
ThreadLevelInfo
m_threadLevelInfo
;
private
ProblemStatistics
m_problemStatistics
;
private
ProblemStatistics
m_allStatistics
;
public
Model
(
Context
ctx
)
{
super
(
ctx
);
}
public
ProblemStatistics
getAllStatistics
()
{
return
m_allStatistics
;
}
public
int
getCurrentMinute
()
{
return
m_currentMinute
;
}
...
...
@@ -45,6 +52,10 @@ public class Model extends AbstractReportModel<Action, Context> {
return
Action
.
GROUP
;
}
public
String
getDefaultThreshold
()
{
return
m_defaultThreshold
;
}
@Override
public
String
getDomain
()
{
if
(
m_report
==
null
)
{
...
...
@@ -64,12 +75,12 @@ public class Model extends AbstractReportModel<Action, Context> {
}
public
GroupLevelInfo
getGroupLevelInfo
()
{
return
m_groupLevelInfo
;
}
return
m_groupLevelInfo
;
}
public
String
getGroupName
()
{
return
m_groupName
;
}
return
m_groupName
;
}
public
int
getHour
()
{
return
m_hour
;
...
...
@@ -79,6 +90,12 @@ public class Model extends AbstractReportModel<Action, Context> {
return
m_ipAddress
;
}
public
List
<
String
>
getIps
()
{
List
<
String
>
result
=
new
ArrayList
<
String
>(
m_report
.
getIps
());
Collections
.
sort
(
result
);
return
result
;
}
public
int
getLastMinute
()
{
return
m_lastMinute
;
}
...
...
@@ -98,33 +115,44 @@ public class Model extends AbstractReportModel<Action, Context> {
}
public
ProblemStatistics
getProblemStatistics
()
{
return
m_problemStatistics
;
}
return
m_problemStatistics
;
}
public
ProblemReport
getReport
()
{
return
m_report
;
}
public
String
getThreadId
()
{
return
m_threadId
;
}
public
ThreadLevelInfo
getThreadLevelInfo
()
{
return
m_threadLevelInfo
;
}
return
m_threadLevelInfo
;
}
public
int
getThreshold
()
{
return
m_threshold
;
}
public
void
setAllStatistics
(
ProblemStatistics
allStatistics
)
{
m_allStatistics
=
allStatistics
;
}
public
void
setCurrentMinute
(
int
currentMinute
)
{
m_currentMinute
=
currentMinute
;
}
public
void
setDefaultThreshold
(
String
defaultThreshold
)
{
m_defaultThreshold
=
defaultThreshold
;
}
public
void
setGroupLevelInfo
(
GroupLevelInfo
groupLevelInfo
)
{
m_groupLevelInfo
=
groupLevelInfo
;
}
m_groupLevelInfo
=
groupLevelInfo
;
}
public
void
setGroupName
(
String
groupName
)
{
m_groupName
=
groupName
;
}
m_groupName
=
groupName
;
}
public
void
setHour
(
int
hour
)
{
m_hour
=
hour
;
...
...
@@ -139,8 +167,8 @@ public class Model extends AbstractReportModel<Action, Context> {
}
public
void
setProblemStatistics
(
ProblemStatistics
problemStatistics
)
{
m_problemStatistics
=
problemStatistics
;
}
m_problemStatistics
=
problemStatistics
;
}
public
void
setReport
(
ProblemReport
report
)
{
m_report
=
report
;
...
...
@@ -151,23 +179,11 @@ public class Model extends AbstractReportModel<Action, Context> {
}
public
void
setThreadLevelInfo
(
ThreadLevelInfo
threadLevelInfo
)
{
m_threadLevelInfo
=
threadLevelInfo
;
}
public
ProblemStatistics
getAllStatistics
()
{
return
m_allStatistics
;
}
public
void
setAllStatistics
(
ProblemStatistics
allStatistics
)
{
m_allStatistics
=
allStatistics
;
}
public
int
getThreshold
()
{
return
m_threshold
;
}
m_threadLevelInfo
=
threadLevelInfo
;
}
public
void
setThreshold
(
int
threshold
)
{
m_threshold
=
threshold
;
}
m_threshold
=
threshold
;
}
}
cat-home/src/main/java/com/dianping/cat/report/page/problem/Payload.java
浏览文件 @
fce00a6f
...
...
@@ -75,6 +75,10 @@ public class Payload extends AbstractReportPayload<Action> {
}
return
m_longTime
;
}
public
int
getRealLongTime
(){
return
m_longTime
;
}
public
void
setLongTime
(
int
longTime
)
{
m_longTime
=
longTime
;
...
...
cat-home/src/main/java/com/dianping/cat/report/page/problem/ProblemStatistics.java
浏览文件 @
fce00a6f
...
...
@@ -49,7 +49,7 @@ public class ProblemStatistics {
return
sb
.
toString
();
}
public
ProblemStatistics
display
AllIp
(
ProblemReport
report
,
Payload
payload
)
{
public
ProblemStatistics
display
ByAllIps
(
ProblemReport
report
,
Payload
payload
)
{
m_threshold
=
payload
.
getLongTime
();
if
(
report
==
null
)
{
...
...
@@ -97,8 +97,9 @@ public class ProblemStatistics {
return
this
;
}
public
ProblemStatistics
displayByGroupOrThread
(
ProblemReport
report
,
Model
model
)
{
public
ProblemStatistics
displayByGroupOrThread
(
ProblemReport
report
,
Model
model
,
Payload
payload
)
{
Machine
machine
=
report
.
getMachines
().
get
(
model
.
getIpAddress
());
m_threshold
=
payload
.
getLongTime
();
if
(
machine
==
null
)
{
return
null
;
...
...
@@ -116,7 +117,7 @@ public class ProblemStatistics {
continue
;
}
List
<
Entry
>
entries
=
segment
.
getEntries
();
statisticsEntries
(
entries
,
ONE_SECOND
);
statisticsEntries
(
entries
,
m_threshold
);
}
}
else
if
(!
isEmpty
(
m_groupName
)
&&
isEmpty
(
m_threadId
))
{
...
...
@@ -129,7 +130,7 @@ public class ProblemStatistics {
continue
;
}
List
<
Entry
>
entries
=
segment
.
getEntries
();
statisticsEntries
(
entries
,
ONE_SECOND
);
statisticsEntries
(
entries
,
m_threshold
);
}
}
...
...
@@ -144,7 +145,7 @@ public class ProblemStatistics {
return
null
;
}
List
<
Entry
>
entries
=
segment
.
getEntries
();
statisticsEntries
(
entries
,
ONE_SECOND
);
statisticsEntries
(
entries
,
m_threshold
);
}
return
this
;
...
...
@@ -245,7 +246,7 @@ public class ProblemStatistics {
private
List
<
String
>
m_links
=
new
ArrayList
<
String
>();
private
static
int
s_maxLinkSize
=
2
0
;
private
static
int
s_maxLinkSize
=
4
0
;
public
StatusStatistics
(
Entry
entry
,
String
groupName
,
String
threadId
)
{
m_status
=
entry
.
getStatus
();
...
...
cat-home/src/main/java/com/dianping/cat/report/page/transaction/Handler.java
浏览文件 @
fce00a6f
...
...
@@ -10,6 +10,7 @@ import org.codehaus.plexus.personality.plexus.lifecycle.phase.Initializable;
import
org.codehaus.plexus.personality.plexus.lifecycle.phase.InitializationException
;
import
com.dianping.cat.Cat
;
import
com.dianping.cat.configuration.ServerConfigManager
;
import
com.dianping.cat.consumer.transaction.StatisticsComputer
;
import
com.dianping.cat.consumer.transaction.model.entity.Duration
;
import
com.dianping.cat.consumer.transaction.model.entity.Range
;
...
...
@@ -42,6 +43,9 @@ public class Handler implements PageHandler<Context>, Initializable {
@Inject
private
GraphBuilder
m_builder
;
@Inject
private
ServerConfigManager
m_manager
;
private
Map
<
Integer
,
Integer
>
m_map
=
new
HashMap
<
Integer
,
Integer
>();
...
...
@@ -127,6 +131,10 @@ public class Handler implements PageHandler<Context>, Initializable {
model
.
setAction
(
payload
.
getAction
());
model
.
setPage
(
ReportPage
.
TRANSACTION
);
if
(
StringUtils
.
isEmpty
(
payload
.
getDomain
())){
payload
.
setDomain
(
m_manager
.
getServerConfig
().
getConsole
().
getDefaultDomain
());
}
model
.
setDisplayDomain
(
payload
.
getDomain
());
if
(
payload
.
getPeriod
().
isFuture
())
{
...
...
cat-home/src/main/resources/META-INF/plexus/components.xml
浏览文件 @
fce00a6f
...
...
@@ -350,6 +350,9 @@
<role-hint>
problem
</role-hint>
<field-name>
m_service
</field-name>
</requirement>
<requirement>
<role>
com.dianping.cat.configuration.ServerConfigManager
</role>
</requirement>
</requirements>
</component>
<component>
...
...
@@ -371,6 +374,9 @@
<requirement>
<role>
com.dianping.cat.report.graph.GraphBuilder
</role>
</requirement>
<requirement>
<role>
com.dianping.cat.configuration.ServerConfigManager
</role>
</requirement>
</requirements>
</component>
<component>
...
...
@@ -392,6 +398,9 @@
<requirement>
<role>
com.dianping.cat.report.graph.GraphBuilder
</role>
</requirement>
<requirement>
<role>
com.dianping.cat.configuration.ServerConfigManager
</role>
</requirement>
</requirements>
</component>
<component>
...
...
@@ -423,6 +432,9 @@
<requirement>
<role>
com.dianping.cat.report.page.ip.JspViewer
</role>
</requirement>
<requirement>
<role>
com.dianping.cat.configuration.ServerConfigManager
</role>
</requirement>
<requirement>
<role>
com.dianping.cat.report.page.model.spi.ModelService
</role>
<role-hint>
ip
</role-hint>
...
...
cat-home/src/main/webapp/WEB-INF/web.xml
浏览文件 @
fce00a6f
...
...
@@ -24,10 +24,6 @@
<servlet-name>
mvc-servlet
</servlet-name>
<url-pattern>
/r/*
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
mvc-servlet
</servlet-name>
<url-pattern>
/
</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>
cat-servlet
</servlet-name>
<url-pattern>
/s/*
</url-pattern>
...
...
cat-home/src/main/webapp/jsp/report/problemTable.jsp
浏览文件 @
fce00a6f
...
...
@@ -9,7 +9,7 @@
<c:otherwise>
<a
href=
"?domain=${model.domain}&date=${model.date}"
>
All
</a>
</c:otherwise>
</c:choose>
]
<c:forEach
var=
"ip"
items=
"
${
report
.
ips
}
"
>
</c:choose>
]
<c:forEach
var=
"ip"
items=
"
${
model
.
ips
}
"
>
[
<c:choose>
<c:when
test=
"
${
model
.
ipAddress
eq
ip
}
"
>
...
...
@@ -24,6 +24,7 @@
</c:forEach>
</th><th>
long-url
<input
id=
"thresholdInput"
style=
"display: none"
value=
"${model.threshold}"
>
<select
size=
"1"
id=
"p_longUrl"
>
${model.defaultThreshold}
<option
value=
"500"
>
0.5 Sec
</option>
<option
value=
"1000"
>
1.0 Sec
</option>
<option
value=
"1500"
>
1.5 Sec
</option>
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录