Skip to main content

AuditLogger

Struct AuditLogger 

Source
pub struct AuditLogger { /* private fields */ }
Expand description

Audit logger implementation

Implementations§

Source§

impl AuditLogger

Source

pub async fn new(config: AuditConfig) -> Result<Self>

Create a new audit logger

Source

pub async fn log_event( &self, level: AuditLogLevel, client_id: &str, operation: &str, result: &str, metadata: Value, )

Log a generic audit event

Source§

impl AuditLogger

Source

pub async fn log_episode_creation( &self, client_id: &str, episode_id: &str, task_description: &str, success: bool, error: Option<&str>, )

Log episode creation

Source

pub async fn log_episode_modification( &self, client_id: &str, episode_id: &str, operation: &str, success: bool, error: Option<&str>, )

Log episode modification

Source

pub async fn log_episode_deletion( &self, client_id: &str, episode_id: &str, success: bool, error: Option<&str>, )

Log episode deletion

Source

pub async fn log_episode_step( &self, client_id: &str, episode_id: &str, step_number: u32, tool: &str, success: bool, )

Log episode step addition

Source

pub async fn log_episode_completion( &self, client_id: &str, episode_id: &str, outcome: &str, success: bool, )

Log episode completion

Source§

impl AuditLogger

Source

pub async fn log_pattern_analysis( &self, client_id: &str, task_type: &str, result_count: usize, success: bool, )

Log pattern analysis request

Source

pub async fn log_advanced_pattern_analysis( &self, client_id: &str, analysis_type: &str, success: bool, )

Log advanced pattern analysis

Log pattern search

Source

pub async fn log_recommend_patterns( &self, client_id: &str, domain: &str, recommendation_count: usize, success: bool, )

Log pattern recommendation request

Source

pub async fn log_playbook_recommendation( &self, client_id: &str, task_description: &str, playbook_count: usize, success: bool, )

Log playbook recommendation request (ADR-044 Feature 1)

Source

pub async fn log_pattern_explanation( &self, client_id: &str, pattern_id: &str, success: bool, )

Log pattern explanation request (ADR-44 Feature 1)

Source§

impl AuditLogger

Source

pub async fn log_batch_execution( &self, client_id: &str, operation_count: usize, success_count: usize, failure_count: usize, success: bool, )

Log batch execution

Source

pub async fn log_bulk_episodes( &self, client_id: &str, episode_count: usize, success: bool, )

Log bulk episode retrieval

Source

pub async fn log_memory_query( &self, client_id: &str, query: &str, result_count: usize, success: bool, )

Log memory query

Source

pub async fn log_semantic_query( &self, client_id: &str, query: &str, result_count: usize, success: bool, )

Log semantic memory query

Source§

impl AuditLogger

Source

pub async fn log_add_relationship( &self, client_id: &str, from_episode_id: &str, to_episode_id: &str, relationship_type: &str, relationship_id: &str, success: bool, )

Log relationship addition between episodes

Source

pub async fn log_remove_relationship( &self, client_id: &str, relationship_id: &str, success: bool, )

Log relationship removal

Source

pub async fn log_get_relationships( &self, client_id: &str, episode_id: &str, total_count: usize, success: bool, )

Log get episode relationships query

Log find related episodes query

Source

pub async fn log_check_relationship( &self, client_id: &str, from_episode_id: &str, to_episode_id: &str, relationship_type: &str, exists: bool, success: bool, )

Log check relationship exists query

Source

pub async fn log_dependency_graph( &self, client_id: &str, episode_id: &str, node_count: usize, edge_count: usize, success: bool, )

Log dependency graph generation

Source

pub async fn log_validate_cycles( &self, client_id: &str, from_episode_id: &str, to_episode_id: &str, relationship_type: &str, would_create_cycle: bool, success: bool, )

Log cycle validation check

Source

pub async fn log_topological_order( &self, client_id: &str, input_count: usize, output_count: usize, has_cycles: bool, success: bool, )

Log topological order computation

Source§

impl AuditLogger

Source

pub async fn log_config_change( &self, client_id: &str, config_key: &str, old_value: &Value, new_value: &Value, success: bool, )

Log configuration change

Source

pub async fn log_embedding_config( &self, client_id: &str, provider: &str, model: Option<&str>, success: bool, )

Log embedding configuration change

Source

pub async fn log_embedding_generation(&self, client_id: &str, success: bool)

Log embedding generation event

Log embedding search event

Source

pub async fn log_authentication( &self, client_id: &str, auth_type: &str, success: bool, error: Option<&str>, )

Log authentication event

Source

pub async fn log_rate_limit_violation( &self, client_id: &str, operation: &str, limit: u32, current_count: u32, )

Log rate limit violation

Source

pub async fn log_security_violation( &self, client_id: &str, violation_type: &str, details: &str, )

Log security violation

Source

pub async fn log_code_execution( &self, client_id: &str, sandbox_type: &str, execution_time_ms: u64, success: bool, error: Option<&str>, )

Log code execution event

Source

pub async fn log_relationship_change( &self, client_id: &str, source_id: &str, target_id: &str, relationship_type: &str, operation: &str, success: bool, )

Log relationship change

Source

pub async fn log_external_signal_config( &self, client_id: &str, provider: &str, db_path: &str, enabled: bool, success: bool, )

Log external signal provider configuration change

Source

pub async fn log_external_signal_test( &self, client_id: &str, provider: &str, success: bool, )

Log external signal provider connection test

Source§

impl AuditLogger

Source

pub async fn log_add_tags( &self, client_id: &str, episode_id: &str, tags: &[String], success: bool, )

Log tag addition to episode

Source

pub async fn log_remove_tags( &self, client_id: &str, episode_id: &str, tags: &[String], success: bool, )

Log tag removal from episode

Source

pub async fn log_set_tags( &self, client_id: &str, episode_id: &str, tags: &[String], success: bool, )

Log tag replacement on episode

Source

pub async fn log_search_tags( &self, client_id: &str, tags: &[String], result_count: usize, )

Log tag search

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GetSetFdFlags for T

Source§

fn get_fd_flags(&self) -> Result<FdFlags, Error>
where T: AsFilelike,

Query the “status” flags for the self file descriptor.
Source§

fn new_set_fd_flags(&self, fd_flags: FdFlags) -> Result<SetFdFlags<T>, Error>
where T: AsFilelike,

Create a new SetFdFlags value for use with set_fd_flags. Read more
Source§

fn set_fd_flags(&mut self, set_fd_flags: SetFdFlags<T>) -> Result<(), Error>
where T: AsFilelike,

Set the “status” flags for the self file descriptor. Read more
Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> Pointee for T

Source§

type Pointer = u32

Source§

fn debug( pointer: <T as Pointee>::Pointer, f: &mut Formatter<'_>, ) -> Result<(), Error>

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

Source§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
Source§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
Source§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
Source§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> SendAlias for T

Source§

impl<T> SendAlias for T

Source§

impl<T> SyncAlias for T

Source§

impl<T> SyncAlias for T