123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274 |
- {{template "main" .}}
- <!-- Navbar -->
- <nav class="main-header navbar navbar-expand navbar-white navbar-light">
- <!-- Left navbar links -->
- <ul class="navbar-nav">
- <li class="nav-item">
- <a class="nav-link" data-widget="pushmenu" href="#" role="button"><i class="fas fa-bars"></i></a>
- </li>
- <li class="nav-item d-none d-sm-inline-block">
- <a href="/test" class="nav-link">告警管理</a>
- </li>
- </ul>
- </nav>
- <!-- /.navbar -->
- <!-- Content Wrapper. Contains page content -->
- <div class="content-wrapper">
- <!-- Content Header (Page header) -->
- <section class="content-header">
- <div class="container-fluid">
- <div class="row mb-2">
- <div class="col-sm-6">
- <h1>告警测试</h1>
- </div>
- </div>
- </div><!-- /.container-fluid -->
- </section>
- <!-- Main content -->
- <section class="content">
- <!-- Default box -->
- <div class="card">
- <div class="card-header">
- <h3 class="card-title" style="color:red">** 告警测试功能主要是通过发送测试消息校验配置文件的正确性</h3>
- <div class="card-tools">
- <button type="button" class="btn btn-tool" data-card-widget="collapse" title="Collapse">
- <i class="fas fa-minus"></i>
- </button>
- <button type="button" class="btn btn-tool" data-card-widget="remove" title="Remove">
- <i class="fas fa-times"></i>
- </button>
- </div>
- </div>
- <div class="card-body">
-
- <table class="table table-hover">
- <thead>
- <tr>
- <th>ID</th>
- <th>名称</th>
- <th>操作</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <th>1</th>
- <th>钉钉</th>
- <th>
- <a id="dd" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>2</th>
- <th>企业微信</th>
- <th>
- <a id="wx" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>3</th>
- <th>飞书</th>
- <th>
- <a id="fs" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>4</th>
- <th>腾讯云语音电话</th>
- <th>
- <a id="txdh" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>5</th>
- <th>腾讯云短信</th>
- <th>
- <a id="txdx" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>6</th>
- <th>阿里云语音电话</th>
- <th>
- <a id="alydh" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>7</th>
- <th>阿里云短信</th>
- <th>
- <a id="alydx" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>8</th>
- <th>容联云语音电话</th>
- <th>
- <a id="rlydh" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>9</th>
- <th>华为云短信</th>
- <th>
- <a id="hwdx" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>10</th>
- <th>Email</th>
- <th>
- <a id="email" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>11</th>
- <th>七陌短信</th>
- <th>
- <a id="7moordx" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>12</th>
- <th>七陌语音电话</th>
- <th>
- <a id="7moordh" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>13</th>
- <th>Telegram</th>
- <th>
- <a id="tg" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>14</th>
- <th>企业微信应用</th>
- <th>
- <a id="workwechat" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>15</th>
- <th>百度云短信</th>
- <th>
- <a id="bddx" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>16</th>
- <th>百度Hi(如流)</th>
- <th>
- <a id="bdrl" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
-
- <tr>
- <th>17</th>
- <th>Bark(iPhone推送)</th>
- <th>
- <a id="bark" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
-
- <tr>
- <th>18</th>
- <th>语音播报</th>
- <th>
- <a id="voice" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
- <tr>
- <th>19</th>
- <th>飞书机器人应用</th>
- <th>
- <a id="fsapp" class="btn btn-default btn-flat">
- <i class="fas fa-bullhorn"></i> 告警测试
- </a>
- </th>
- </tr>
-
- </tbody>
- </table>
- </div>
- <!-- /.card-body -->
- <div class="card-footer">
- 短信和电话请提前配置好app.conf中的[defaultphone]配置项
- </div>
- <!-- /.card-footer-->
- </div>
- <!-- /.card -->
- </section>
- <!-- /.content -->
- </div>
- <!-- /.content-wrapper -->
- {{template "endhtml"}}
- <script>
- $(function(){
- $(".btn").click(function(){
- $.post("/alerttest",{mtype:$(this).attr("id")},function(result){
- alert(result);
- });
- });
- })
- </script>
- {{template "jshtml"}}
|