List all enabled alerts (all tenants). Used by the eval loop.
(&self)
| 52 | |
| 53 | /// List all enabled alerts (all tenants). Used by the eval loop. |
| 54 | pub fn list_all_enabled(&self) -> Vec<AlertDef> { |
| 55 | self.read_map() |
| 56 | .values() |
| 57 | .filter(|a| a.enabled) |
| 58 | .cloned() |
| 59 | .collect() |
| 60 | } |
| 61 | |
| 62 | /// List all alerts (all tenants, enabled and disabled). |
| 63 | /// Used by the recovery verifier. |