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

Method register

nodedb/src/event/alert/registry.rs:34–37  ·  view source on GitHub ↗
(&self, def: AlertDef)

Source from the content-addressed store, hash-verified

32 }
33
34 pub fn register(&self, def: AlertDef) {
35 let key = (def.tenant_id, def.name.clone());
36 self.write_map().insert(key, def);
37 }
38
39 pub fn unregister(&self, tenant_id: u64, name: &str) -> bool {
40 self.write_map()

Callers 6

next_interval_minimum_1sFunction · 0.45
updateMethod · 0.45
register_and_getFunction · 0.45
unregisterFunction · 0.45
list_enabledFunction · 0.45

Calls 3

write_mapMethod · 0.80
cloneMethod · 0.45
insertMethod · 0.45

Tested by 5

next_interval_minimum_1sFunction · 0.36
register_and_getFunction · 0.36
unregisterFunction · 0.36
list_enabledFunction · 0.36