pub struct AuditStore { /* private fields */ }Expand description
Lightweight audit logging that reuses the event bus.
All audit records are stored as events in the reserved _envoy_audit project.
Implementations§
Source§impl AuditStore
impl AuditStore
pub fn new() -> Self
Sourcepub fn log_message(
&self,
graph: &SqliteGraph,
from: &str,
to: &str,
msg_type: MessageType,
msg_id: &str,
task_id: Option<&str>,
) -> Result<()>
pub fn log_message( &self, graph: &SqliteGraph, from: &str, to: &str, msg_type: MessageType, msg_id: &str, task_id: Option<&str>, ) -> Result<()>
Log that a message was sent.
Sourcepub fn log_event_ingested(
&self,
graph: &SqliteGraph,
project: &str,
source: &str,
event_type: EventType,
) -> Result<()>
pub fn log_event_ingested( &self, graph: &SqliteGraph, project: &str, source: &str, event_type: EventType, ) -> Result<()>
Log that an event was ingested.
Sourcepub fn log_agent_registered(
&self,
graph: &SqliteGraph,
agent_id: &str,
name: &str,
kind: &str,
) -> Result<()>
pub fn log_agent_registered( &self, graph: &SqliteGraph, agent_id: &str, name: &str, kind: &str, ) -> Result<()>
Log agent registration.
Sourcepub fn log_agent_disconnected(
&self,
graph: &SqliteGraph,
agent_id: &str,
) -> Result<()>
pub fn log_agent_disconnected( &self, graph: &SqliteGraph, agent_id: &str, ) -> Result<()>
Log agent disconnection.
Sourcepub fn log_circuit_opened(
&self,
graph: &SqliteGraph,
agent_id: &str,
failure_count: u32,
) -> Result<()>
pub fn log_circuit_opened( &self, graph: &SqliteGraph, agent_id: &str, failure_count: u32, ) -> Result<()>
Log circuit breaker opened.
Sourcepub fn log_circuit_closed(
&self,
graph: &SqliteGraph,
agent_id: &str,
) -> Result<()>
pub fn log_circuit_closed( &self, graph: &SqliteGraph, agent_id: &str, ) -> Result<()>
Log circuit breaker closed.
Sourcepub fn log_task_claimed(
&self,
graph: &SqliteGraph,
task_id: &str,
agent_id: &str,
) -> Result<()>
pub fn log_task_claimed( &self, graph: &SqliteGraph, task_id: &str, agent_id: &str, ) -> Result<()>
Log a task claim.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AuditStore
impl RefUnwindSafe for AuditStore
impl Send for AuditStore
impl Sync for AuditStore
impl Unpin for AuditStore
impl UnsafeUnpin for AuditStore
impl UnwindSafe for AuditStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more