2020-12-19 09:14:36 -05:00
|
|
|
{{define "component/notification"}}
|
|
|
|
<div class="ui tiny notification modal transition hidden">
|
|
|
|
<div class="header">添加通知方式</div>
|
|
|
|
<div class="content">
|
|
|
|
<form id="notificationForm" class="ui form">
|
|
|
|
<input type="hidden" name="ID">
|
|
|
|
<div class="field">
|
2021-01-29 22:22:59 -05:00
|
|
|
<label>名称</label>
|
2020-12-19 09:14:36 -05:00
|
|
|
<input type="text" name="Name">
|
|
|
|
</div>
|
2022-04-14 09:06:42 -04:00
|
|
|
<div class="field">
|
|
|
|
<label>分组</label>
|
2022-04-14 22:56:04 -04:00
|
|
|
<input type="text" name="Tag" placeholder="default">
|
2022-04-14 09:06:42 -04:00
|
|
|
</div>
|
2020-12-19 09:14:36 -05:00
|
|
|
<div class="field">
|
|
|
|
<label>URL</label>
|
|
|
|
<input type="text" name="URL">
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label>请求方式</label>
|
|
|
|
<select name="RequestMethod" class="ui fluid dropdown">
|
|
|
|
<option value="1">GET</option>
|
|
|
|
<option value="2">POST</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
<div class="field">
|
|
|
|
<label>请求类型</label>
|
|
|
|
<select name="RequestType" class="ui fluid dropdown">
|
|
|
|
<option value="1">JSON</option>
|
|
|
|
<option value="2">FORM</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2021-11-05 00:04:39 -04:00
|
|
|
<div class="secret field">
|
|
|
|
<label>Header</label>
|
|
|
|
<textarea name="RequestHeader" placeholder='{"User-Agent":"Nezha-Agent"}'></textarea>
|
|
|
|
</div>
|
2020-12-19 09:14:36 -05:00
|
|
|
<div class="secret field">
|
|
|
|
<label>Body</label>
|
2022-04-22 04:30:05 -04:00
|
|
|
<textarea name="RequestBody" placeholder='{ "content":"#NEZHA#", "ServerName":"#SERVER.NAME#", "ServerIP":"#SERVER.IP#", "CPU":"#SERVER.CPU#", "MEM":"#SERVER.MEM#", "SWAP":"#SERVER.SWAP#", "DISK":"#SERVER.DISK#", "NetInSpeed":"#SERVER.NETINSPEED#", "NetOutSpeed":"#SERVER.NETOUTSPEED#", "TransferIn":"#SERVER.TRANSFERIN#", "TranferOut":"#SERVER.TRANSFEROUT#", "Load1":"#SERVER.LOAD1#", "Load5":"#SERVER.LOAD5#", "Load15":"#SERVER.LOAD15#" "TCP_CONN_COUNT":"#SERVER.TCPCONNCOUNT" "UDP_CONN_COUNT":"#SERVER.UDPCONNCOUNT" }'></textarea>
|
2020-12-19 09:14:36 -05:00
|
|
|
</div>
|
|
|
|
<div class="field">
|
2020-12-19 10:11:16 -05:00
|
|
|
<div class="ui nf-ssl checkbox">
|
2020-12-19 09:14:36 -05:00
|
|
|
<input name="VerifySSL" type="checkbox" tabindex="0" class="hidden">
|
|
|
|
<label>验证SSL</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-04-22 14:07:46 -04:00
|
|
|
<div class="field">
|
|
|
|
<div class="ui nf-skip-check checkbox">
|
|
|
|
<input name="SkipCheck" type="checkbox" tabindex="0" class="hidden">
|
|
|
|
<label>不发送测试信息</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2020-12-19 09:14:36 -05:00
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="actions">
|
|
|
|
<div class="ui negative button">取消</div>
|
2021-08-05 23:48:34 -04:00
|
|
|
<button class="ui positive nezha-primary-btn right labeled icon button">确认<i class="checkmark icon"></i>
|
2020-12-19 09:14:36 -05:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{end}}
|