mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix(monitor): add resType filter
1.修复资源类型过滤失效的问题
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