aggregationUpdate.jsp
3.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<%@ page contentType="text/html; charset=utf-8" %>
<%@ taglib prefix="a" uri="/WEB-INF/app.tld"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="res" uri="http://www.unidal.org/webres"%>
<%@ taglib prefix="w" uri="http://www.unidal.org/web/core"%>
<jsp:useBean id="ctx" type="com.dianping.cat.system.page.config.Context" scope="request"/>
<jsp:useBean id="payload" type="com.dianping.cat.system.page.config.Payload" scope="request"/>
<jsp:useBean id="model" type="com.dianping.cat.system.page.config.Model" scope="request"/>
<a:config>
<form name="aggregationUpdate" id="form" method="post" action="${model.pageUri}?op=aggregationUpdateSubmit">
<table style='width:100%' class='table table-striped table-condensed '>
<tr>
<td>报表类型</td>
<td><select id="reportType" name = "aggregation.type">
<c:choose>
<c:when test="${model.aggregationRule.type == 1}">
<option value="1" selected="selected">transaction</option>
<option value="2">event</option>
<option value="3">problem</option>
</c:when>
<c:when test="${model.aggregationRule.type == 2}">
<option value="1">transaction</option>
<option value="2" selected="selected">event</option>
<option value="3">problem</option>
</c:when>
<c:when test="${model.aggregationRule.type == 3}">
<option value="1">transaction</option>
<option value="2">event</option>
<option value="3" selected="selected">problem</option>
</c:when>
<c:otherwise>
<option value="1">transaction</option>
<option value="2">event</option>
<option value="3" selected="selected">problem</option>
</c:otherwise>
</c:choose>
</select> </td>
<!-- td><input type="text" name="type" value="${model.aggregationRule.type}"/></td> -->
</tr>
<tr>
<td>域名</td>
<td><input type="text" class="input-xlarge" value="FrontEnd" placeholder="聚合规则作用的域名" name="aggregation.domain" required value="${model.aggregationRule.domain}"/></td>
</tr>
<tr>
<td>模板</td>
<td><input type="text" class="input-xlarge" placeholder="选择被聚合对象的模板" name="aggregation.pattern" required value="${model.aggregationRule.pattern}"/></td>
</tr>
<tr>
<td>告警阈值</td>
<td><input type="text" class="input-xlarge" placeholder="告警阈值" name="aggregation.warn" required value="${model.aggregationRule.warn}"/></td>
</tr>
<tr>
<td>联系邮件</td>
<td><input type="text" class="input-xlarge" placeholder="联系邮件" name="aggregation.mails" required value="${model.aggregationRule.mails}"/>(多个以逗号隔开)</td>
</tr>
<%-- <tr>
<td>显示名称</td>
<td><input type="text" class="input-xlarge" placeholder="聚合显示的名称" name="aggregation.displayName" required value="${model.aggregationRule.displayName}"/></td>
</tr>
<tr>
<td>示例</td>
<td><input type="text" class="input-xlarge" placeholder="被聚合对象的示例" name="aggregation.sample" required value="${model.aggregationRule.sample}"/></td>
</tr> --%>
<tr>
<td style='text-align:center' colspan='2'><input class='btn btn-primary btn-sm' type="submit" name="submit" value="提交" /></td>
</tr>
</table>
</form>
</a:config>
<script type="text/javascript">
$(document).ready(function() {
$('#userMonitor_config').addClass('active open');
$('#aggregations').addClass('active');
});
</script>