Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
在通过通知的方式调用第三方WebAPI时
若该API请求体需要对有效的服务器状态指标(如IP)进行验证
可能会返回非200状态码并将阻止添加/修改该通知方式
因此在添加/修改通知方式界面添加一个checkbox
勾选后本次添加/修改将不发送测试信息
具体用例:
当希望通过IP变更通知提醒报警 将服务器IP添加至Cloudflare Access Rule 白名单时
需要先创建对应的通知方式进行相关API请求
若IP无效 Cloudflare API 会返回400状态码
此时无法保存该新建的通知方式
因此需要跳过测试信息发送