forked from feiyu563/PrometheusAlert
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.html
More file actions
112 lines (97 loc) · 2.78 KB
/
Copy pathtest.html
File metadata and controls
112 lines (97 loc) · 2.78 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
{{template "main"}}
<title>PrometheusAlert</title>
</head>
<body>
{{template "head" .}}
<div class="bs-docs-header">
<div class="container">
<label class="col-sm-2">告警测试</label>
</div>
</div>
<div class="container">
<div class="page-header">
<div class="form-group" style="text-align:center">
<label>短信和电话请提前配置好app.conf中的[defaultphone]配置项</label>
</div>
</div>
</div>
<div class="container">
<div class="page-header">
<table class="table table-hover">
<thead>
<tr>
<th>ID</th>
<th>名称</th>
<th>操作</th>
</tr>
</thead>
<tbody>
<tr>
<th>1</th>
<th>钉钉</th>
<th><button class="btn btn-primary" data-toggle='modal' id="dd">告警测试</button></th>
</tr>
<tr>
<th>2</th>
<th>企业微信</th>
<th><button class="btn btn-primary" data-toggle='modal' id="wx">告警测试</button></th>
</tr>
<tr>
<th>3</th>
<th>飞书</th>
<th><button class="btn btn-primary" data-toggle='modal' id="fs">告警测试</button></th>
</tr>
<tr>
<th>4</th>
<th>腾讯云语音电话</th>
<th><button class="btn btn-primary" data-toggle='modal' id="txdh">告警测试</button></th>
</tr>
<tr>
<th>5</th>
<th>腾讯云短信</th>
<th><button class="btn btn-primary" data-toggle='modal' id="txdx">告警测试</button></th>
</tr>
<tr>
<th>6</th>
<th>阿里云语音电话</th>
<th><button class="btn btn-primary" data-toggle='modal' id="alydh">告警测试</button></th>
</tr>
<tr>
<th>7</th>
<th>阿里云短信</th>
<th><button class="btn btn-primary" data-toggle='modal' id="alydx">告警测试</button></th>
</tr>
<tr>
<th>8</th>
<th>容联云语音电话</th>
<th><button class="btn btn-primary" data-toggle='modal' id="rlydh">告警测试</button></th>
</tr>
<tr>
<th>9</th>
<th>华为云短信</th>
<th><button class="btn btn-primary" data-toggle='modal' id="hwdx">告警测试</button></th>
</tr>
<tr>
<th>10</th>
<th>Email</th>
<th><button class="btn btn-primary" data-toggle='modal' id="email">告警测试</button></th>
</tr>
</tbody>
</table>
</div>
</div>
<div class="page-header">
<div class="container text-center">
<script type="text/javascript" src="/static/js/jquery-3.3.1.min.js"></script>
<script>
$(function(){
$(".btn").click(function(){
$.post("/alerttest",{mtype:$(this).attr("id")},function(result){
alert(result);
});
});
})
</script>
</div>
</div>
{{template "endhtml"}}