静态字符串无法参与计算

提交一个表达式说明,静态字符串无法参与计算
This commit is contained in:
cppla 2023-10-13 12:46:25 +08:00 committed by GitHub
parent fdca4fd353
commit 03682772a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -67,9 +67,9 @@ cd ServerStatus/server && make
#### 二、修改配置文件
```diff
! watchdog rule 可以为任何已知字段的表达式
! watchdog interval 最小通知间隔
! watchdog callback 可自定义为Post方法的URL告警内容将拼接其后并发起回调
! watchdog rule 可以为任何已知字段的表达式不包括name, type, host, location, uptime字符串无法参与计算
! watchdog interval 最小通知间隔
! watchdog callback 可自定义为Post方法的URL告警内容将拼接其后并发起回调
! watchdog callback Telegram: https://api.telegram.org/bot你自己的密钥/sendMessage?parse_mode=HTML&disable_web_page_preview=true&chat_id=你自己的标识&text=
! watchdog callback Server酱: https://sctapi.ftqq.com/你自己的密钥.send?title=ServerStatus&desp=
@ -106,8 +106,8 @@ cd ServerStatus/server && make
"callback": "https://yourSMSurl"
},
{
"name": "服务器宕机告警,排除经常掉线的",
"rule": "online4=0&online6=0&name!=俄勒冈",
"name": "服务器宕机告警,排除海外机器",
"rule": "online4=0&online6=0&time_10010<160&time_189<160&time_10086<160",
"interval": 600,
"callback": "https://yourSMSurl"
},