Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
jack
9 years ago
Commit
f6b97e510a5f2620e49a68a28031f5f280b6b67c
1 parent
326ff146
增加定时1分钟刷新
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
11 deletions
monitor-ui-web/src/main/webapp/jsp/redisInfo/newRedisMonitor.jsp
monitor-ui-web/src/main/webapp/jsp/redisInfo/newRedisMonitor.jsp
View file @
f6b97e5
...
...
@@ -119,6 +119,10 @@
<script
type=
"text/javascript"
>
$
(
function
()
{
refreshTable
();
});
function
refreshTable
()
{
$
(
"#tRedisTable"
).
table
({
url
:
contextPath
+
"redisMonitor/allTwemproxy"
,
striped
:
true
,
...
...
@@ -130,15 +134,15 @@
columns
:
[
{
title
:
"业务分类"
,
// field: "name"
// field: "name"
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
return
"<div style=' padding:10px;'>"
+
rowData
.
name
+
"</div>"
;
}
},
{
{
title
:
"地址"
,
// field: "url"
width
:
"200px"
,
// field: "url"
width
:
"200px"
,
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
array
=
rowData
.
url
.
split
(
"\r\n"
);
var
div
=
""
;
...
...
@@ -149,7 +153,7 @@
},
{
title
:
"当前连接数"
,
width
:
"100px"
,
// field: "connections"
// field: "connections"
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
array
=
rowData
.
connections
.
split
(
"\r\n"
);
var
div
=
""
;
...
...
@@ -160,7 +164,7 @@
},
{
title
:
"启动时长"
,
width
:
"100px"
,
// field: "taskCtime"
// field: "taskCtime"
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
array
=
rowData
.
taskCtime
.
split
(
"\r\n"
);
var
div
=
""
;
...
...
@@ -182,7 +186,7 @@
},
{
title
:
"网络归属"
,
width
:
"120px"
,
// field: "network"
// field: "network"
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
array
=
rowData
.
network
.
split
(
"\r\n"
);
var
div
=
""
;
...
...
@@ -193,7 +197,7 @@
},
{
title
:
"状态"
,
width
:
"100px"
,
// field: "state"
// field: "state"
formatter
:
function
(
value
,
rowData
,
rowIndex
)
{
var
array
=
rowData
.
state
.
split
(
"\r\n"
);
var
div
=
""
;
...
...
@@ -229,9 +233,8 @@
}],
/* data: data*/
});
});
setTimeout
(
'refreshTable()'
,
60000
);
}
function
showRedisInfo
(
rowData
)
{
var
vId
=
rowData
.
volumeId
;
...
...
Please
register
or
login
to post a comment