MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / list_all_enabled

Method list_all_enabled

nodedb/src/event/alert/registry.rs:54–60  ·  view source on GitHub ↗

List all enabled alerts (all tenants). Used by the eval loop.

(&self)

Source from the content-addressed store, hash-verified

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.

Callers 3

alert_eval_loopFunction · 0.45
next_eval_interval_msFunction · 0.45
list_enabledFunction · 0.45

Calls 2

collectMethod · 0.80
read_mapMethod · 0.80

Tested by 1

list_enabledFunction · 0.36