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
skinny.wu
9 years ago
Commit
3831d4dddfc498dedde975da06e5d564ea3cc94d
1 parent
0431daab
增加redis UI 定时刷新页面功能
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
10 deletions
monitor-ui-web/src/main/webapp/script/redis/redis_info_list.js
monitor-ui-web/src/main/webapp/script/redis/redis_info_list.js
View file @
3831d4d
var
myMasterRedis
=
null
;
var
mySlaveRedis
=
null
;
$
(
function
()
{
loadRedisMonitorData
();
timerRedisMonitor
();
});
function
timerRedisMonitor
()
{
setTimeout
(
"loadRedisMonitorData()"
,
30000
);
}
loadRedisMonitorData
();
setInterval
(
"loadRedisMonitorData()"
,
30000
);
function
loadRedisMonitorData
()
{
$
.
ajax
({
...
...
@@ -17,8 +12,6 @@ function loadRedisMonitorData() {
dataType
:
"json"
,
success
:
function
(
data
)
{
console
.
log
(
data
);
var
time
=
""
;
var
awsHtml
=
''
;
if
(
data
.
data
!=
null
)
{
myMasterRedis
=
new
Array
();
mySlaveRedis
=
new
Array
();
...
...
@@ -123,7 +116,7 @@ function loadRedisMonitorData() {
}
contentHtml
+=
"</div></div>"
$
(
"#redisAppendDiv"
).
append
(
contentHtml
);
//
$("#redisAppendDiv").append(contentHtml);
});
}
...
...
Please
register
or
login
to post a comment