Commit 2b4e8c13 authored by fengjunkai's avatar fengjunkai

alarm info

parent 0139f447
......@@ -53,16 +53,8 @@ func DealResult(res []client.Result, strategies []Strategy) {
logger.Info.Println(uniqueTag, ":alter", params[:1], "-", strings.Join(value, ","))
rs := operatorMethod.Call(params)
if rs[0].Bool() { //触发报警策略
s := ""
for _, v := range params {
s += v.String() + " : "
}
for _, v := range tagValues {
s += v + " : "
}
Sender(tagValues, strategy.Name, s, notice) // 报警
//Sender(tagValues, strategy.Name, buildMsgMethod.Call(params[:1])[0].String(), notice) // 报警
//Sender(tagValues, strategy.Name, s, notice) // 报警
Sender(tagValues, strategy.Name, buildMsgMethod.Call(params[:1])[0].String(), notice) // 报警
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment