Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 添加/修改通知方式时可选择不发送测试信息 #164

Merged
merged 6 commits into from
Apr 23, 2022

Conversation

AkkiaS7
Copy link
Member

@AkkiaS7 AkkiaS7 commented Apr 22, 2022

在通过通知的方式调用第三方WebAPI时
若该API请求体需要对有效的服务器状态指标(如IP)进行验证
可能会返回非200状态码并将阻止添加/修改该通知方式
因此在添加/修改通知方式界面添加一个checkbox
勾选后本次添加/修改将不发送测试信息

具体用例:
当希望通过IP变更通知提醒报警 将服务器IP添加至Cloudflare Access Rule 白名单时
需要先创建对应的通知方式进行相关API请求
若IP无效 Cloudflare API 会返回400状态码
此时无法保存该新建的通知方式
因此需要跳过测试信息发送

@AkkiaS7
Copy link
Member Author

AkkiaS7 commented Apr 22, 2022

表格内容自动换行
6a483fa18bc8a9c8202b89a814d724d0.png

resource/static/main.js Outdated Show resolved Hide resolved
@naiba naiba merged commit c3c4080 into nezhahq:master Apr 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants