mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 06:09:39 +08:00
Merge pull request #7256 from zhaoxiangchun/bugfix/zxc-suggest-mon
修复监控报警规则删除的问题
This commit is contained in:
@@ -639,7 +639,8 @@ func (alert *SCommonAlert) customizeDeleteNotis(
|
||||
|
||||
func (alert *SCommonAlert) Delete(ctx context.Context, userCred mcclient.TokenCredential) error {
|
||||
CommonAlertManager.DeleteSubscriptionAlert(alert)
|
||||
return alert.SetStatus(userCred, monitor.ALERT_STATUS_DELETED, "")
|
||||
|
||||
return alert.SAlert.Delete(ctx, userCred)
|
||||
}
|
||||
|
||||
func (self *SCommonAlertManager) GetSystemAlerts() ([]SCommonAlert, error) {
|
||||
|
||||
Reference in New Issue
Block a user