服务延迟报警 [no ci]

This commit is contained in:
naiba
2022-09-17 10:30:32 +08:00
parent eb07b9468b
commit c60ebd1bae
8 changed files with 90 additions and 26 deletions

View File

@@ -10,7 +10,7 @@
<script src="https://cdn.staticfile.org/semantic-ui/2.4.1/semantic.min.js"></script>
<script src="/static/semantic-ui-alerts.min.js"></script>
<script src="https://cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<script src="/static/main.js?v20220915"></script>
<script src="/static/main.js?v20220917"></script>
<script>
(function () {
updateLang({{.LANG }});

View File

@@ -54,6 +54,20 @@
<label>{{tr "EnableFailureNotification"}}</label>
</div>
</div>
<div class="field">
<label>{{tr "MaxLatency"}}</label>
<input type="number" name="MaxLatency" placeholder="100.88" />
</div>
<div class="field">
<label>{{tr "MinLatency"}}</label>
<input type="number" name="MinLatency" placeholder="100.88" />
</div>
<div class="field">
<div class="ui nb-lt-notify checkbox">
<input name="LatencyNotify" type="checkbox" tabindex="0" class="hidden" />
<label>{{tr "EnableLatencyNotification"}}</label>
</div>
</div>
</form>
<div class="ui warning message">
<p>

View File

@@ -20,7 +20,8 @@
<th>{{tr "Type"}}</th>
<th>{{tr "Duration"}}</th>
<th>{{tr "NotificationMethodGroup"}}</th>
<th>{{tr "Notification"}}</th>
<th>{{tr "FailureNotification"}}</th>
<th>{{tr "LatencyNotification"}}</th>
<th>{{tr "Administration"}}</th>
</tr>
</thead>
@@ -39,6 +40,7 @@
<td>{{$monitor.Duration}} {{tr "Seconds"}}</td>
<td>{{$monitor.NotificationTag}}</td>
<td>{{$monitor.Notify}}</td>
<td>{{$monitor.LatencyNotify}}</td>
<td>
<div class="ui mini icon buttons">
<button class="ui button" onclick="addOrEditMonitor({{$monitor}})">