mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-21 14:19:49 +08:00
Merge pull request #9694 from zhaoxiangchun/feature/zxc-alerthistory-master
fix(monitor): add resType filter
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user