Authored by fanzelei

no message

... ... @@ -24,7 +24,7 @@
<appender name="WARN" class="ch.qos.logback.core.rolling.RollingFileAppender">
<file>${catalina.home}/logs/warn.log</file>
<filter class="ch.qos.logback.classic.filter.ThresholdFilter">
<level>ERROR</level>
<level>WARN</level>
</filter>
<rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy">
<!-- daily rollover -->
... ...
... ... @@ -126,7 +126,7 @@
btn.removeClass("btn-success");
btn.addClass("btn-danger");
} else {
$(btn.children("span")[0]).html();
$(btn.children("span")[0]).html("");
btn.removeClass("btn-danger");
btn.addClass("btn-success");
}
... ...
... ... @@ -479,7 +479,7 @@
$("#javaInfoForm #apiUrl").val("");
$("#javaInfoForm #apiData").val("");
$("#javaInfoForm #apiToggle").prop("checked", true)
$("#javaInfoForm #apiWarnTrigger").val(0);
$("#javaInfoForm #apiWarnTrigger").val(3);
$("#javaInfoForm #apiReqMethod").val(0);
$("#javaInfoForm #serviceType").val(1);
} else {
... ...
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
... ... @@ -19,16 +19,31 @@
<div class="widget-title">
<h5>Redis监控</h5>
</div>
<div class="widget-content nopadding">
<script type="text/javascript" src="<%=basePath %>/js/charts/DragNode3.js" ></script>
<div id="chartdiv" align="center" style="width:800px;">
FusionCharts.
</div>
<div class="widget-content nopadding" id="charDiv">
</div>
</div>
</div>
<div id="testDiv"></div>
<script type="text/javascript">
var chart = new FusionCharts("<%=basePath %>/js/charts/DragNode.swf", "ChartId", "1650", "650", "0");
chart.setXMLData(dataString );
chart.render("chartdiv");
$.ajax({
url: contextPath + "/redisInfo/getRedisInfo",
type: 'post',
async: false,
dataType: "json",
success: function (data) {
if(data.data!=null&&data.data!=''){
$.each(data.data, function (n, value) {
var idDiv="chartdiv"+n;
$("#charDiv").prepend('<div id="'+idDiv+'" align="center" style="width:600px;">FusionCharts. </div>');
var chart0 = new FusionCharts("<%=basePath %>/js/charts/DragNode.swf", "ChartId", "1200", "650", "0");
chart0.setXMLData(value);
chart0.render(idDiv);
});
}else{
alert("数据加载失败!");
}
}
});
</script>
\ No newline at end of file
... ...