mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
listfilter by alert_id
This commit is contained in:
@@ -92,6 +92,9 @@ func (manager *SAlertRecordManager) ListItemFilter(
|
||||
if len(query.State) != 0 {
|
||||
q = q.Equals("state", query.State)
|
||||
}
|
||||
if len(query.AlertId) != 0 {
|
||||
q = q.Equals("alert_id", query.AlertId)
|
||||
}
|
||||
return q, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user