mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: monitor commonalert not detach alert resource
This commit is contained in:
@@ -40,6 +40,10 @@ func (drvF *nodeDriverF) IsEvalMatched(input monitor.EvalMatch) bool {
|
||||
if !hasResType {
|
||||
return false
|
||||
}
|
||||
_, hasHostType := tags[hostconsts.TELEGRAF_TAG_KEY_HOST_TYPE]
|
||||
if !hasHostType {
|
||||
return false
|
||||
}
|
||||
_, hasHost := tags[NODE_TAG_HOST_KEY]
|
||||
if !hasHost {
|
||||
return false
|
||||
|
||||
@@ -782,9 +782,9 @@ func (alert *SCommonAlert) CustomizeDelete(
|
||||
err := alert.customizeDeleteNotis(ctx, userCred, query, data)
|
||||
if err != nil {
|
||||
alert.SetStatus(userCred, monitor.ALERT_STATUS_DELETE_FAIL, "")
|
||||
|
||||
return errors.Wrap(err, "customizeDeleteNotis")
|
||||
}
|
||||
return err
|
||||
return alert.SAlert.CustomizeDelete(ctx, userCred, query, data)
|
||||
}
|
||||
|
||||
func (alert *SCommonAlert) customizeDeleteNotis(
|
||||
|
||||
Reference in New Issue
Block a user