add channel test message variable

This commit is contained in:
liugq 2023-08-07 16:11:37 +08:00
parent 754693c91b
commit e2752d6354
1 changed files with 3 additions and 0 deletions

View File

@ -264,6 +264,9 @@ func (h *AlertAPI) testChannel(w http.ResponseWriter, req *http.Request, ps http
ctx := map[string]interface{}{
"title": "INFINI platform test alert message",
"message": "This is just a test message, do not reply!",
"objects": []string{".infini_metrics"},
"trigger_at": time.Now().UnixMilli(),
"duration": "5m10s",
"rule_id": util.GetUUID(),
"rule_name": "test rule",
"resource_id": util.GetUUID(),