Merge pull request #9696 from zhaoxiangchun/automated-cherry-pick-of-#9694-upstream-release-3.7

Automated cherry pick of #9694: fix(monitor): add resType   filter
This commit is contained in:
Zexi Li
2020-12-28 21:22:32 +08:00
committed by GitHub
+3
View File
@@ -104,6 +104,9 @@ func (manager *SAlertRecordManager) ListItemFilter(
} else {
q = q.IsNotEmpty("res_type").IsNotNull("res_type")
}
if len(query.ResType) != 0 {
q = q.Equals("res_type", query.ResType)
}
return q, nil
}