Skip to content

Commit c17bba3

Browse files
author
jikun.zhang
committed
修复告警测试--飞书测试报错
Signed-off-by: jikun.zhang <[email protected]>
1 parent 8a63cf8 commit c17bba3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

controllers/WebTest.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ func (c *MainController) AlertTest() {
1919
c.Data["json"] = ret
2020
case "fs":
2121
fstext := "[PrometheusAlert](https://github.com/feiyu563/PrometheusAlert)\n\n" + "测试告警\n\n" + "告警级别:测试\n\nPrometheusAlert\n\n" + "![PrometheusAlert](" + beego.AppConfig.String("logourl") + ")"
22-
ret := PostToFS("PrometheusAlert", fstext, beego.AppConfig.String("fsurl"), "[email protected]", logsign)
22+
//飞书API要求@ 邮箱地址必须有填充
23+
ret := PostToFS("PrometheusAlert", fstext, beego.AppConfig.String("fsurl"), "[email protected]", logsign)
2324
c.Data["json"] = ret
2425
case "txdx":
2526
MobileMessage := "PrometheusAlertCenter测试告警"

0 commit comments

Comments
 (0)