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

Method push_audit

nodedb/src/control/security/siem.rs:83–89  ·  view source on GitHub ↗

Push an audit event to the export buffer.

(&self, entry: AuditEntry)

Source from the content-addressed store, hash-verified

81
82 /// Push an audit event to the export buffer.
83 pub fn push_audit(&self, entry: AuditEntry) {
84 let mut buf = self.audit_buffer.write().unwrap_or_else(|p| p.into_inner());
85 if buf.len() >= self.config.buffer_size {
86 buf.pop_front();
87 }
88 buf.push_back(entry);
89 }
90
91 /// Push an auth event to the export buffer.
92 pub fn push_auth(&self, entry: AuditEntry) {

Callers 1

buffer_and_drainFunction · 0.80

Calls 3

pop_frontMethod · 0.80
writeMethod · 0.45
lenMethod · 0.45

Tested by 1

buffer_and_drainFunction · 0.64