pub struct AuditLogger { /* private fields */ }Expand description
Audit logger implementation
Implementations§
Source§impl AuditLogger
impl AuditLogger
Source§impl AuditLogger
impl AuditLogger
Sourcepub async fn log_episode_creation(
&self,
client_id: &str,
episode_id: &str,
task_description: &str,
success: bool,
error: Option<&str>,
)
pub async fn log_episode_creation( &self, client_id: &str, episode_id: &str, task_description: &str, success: bool, error: Option<&str>, )
Log episode creation
Sourcepub async fn log_episode_modification(
&self,
client_id: &str,
episode_id: &str,
operation: &str,
success: bool,
error: Option<&str>,
)
pub async fn log_episode_modification( &self, client_id: &str, episode_id: &str, operation: &str, success: bool, error: Option<&str>, )
Log episode modification
Sourcepub async fn log_episode_deletion(
&self,
client_id: &str,
episode_id: &str,
success: bool,
error: Option<&str>,
)
pub async fn log_episode_deletion( &self, client_id: &str, episode_id: &str, success: bool, error: Option<&str>, )
Log episode deletion
Source§impl AuditLogger
impl AuditLogger
Sourcepub async fn log_pattern_analysis(
&self,
client_id: &str,
task_type: &str,
result_count: usize,
success: bool,
)
pub async fn log_pattern_analysis( &self, client_id: &str, task_type: &str, result_count: usize, success: bool, )
Log pattern analysis request
Sourcepub async fn log_advanced_pattern_analysis(
&self,
client_id: &str,
analysis_type: &str,
success: bool,
)
pub async fn log_advanced_pattern_analysis( &self, client_id: &str, analysis_type: &str, success: bool, )
Log advanced pattern analysis
Sourcepub async fn log_pattern_search(
&self,
client_id: &str,
domain: &str,
result_count: usize,
success: bool,
)
pub async fn log_pattern_search( &self, client_id: &str, domain: &str, result_count: usize, success: bool, )
Log pattern search
Sourcepub async fn log_recommend_patterns(
&self,
client_id: &str,
domain: &str,
recommendation_count: usize,
success: bool,
)
pub async fn log_recommend_patterns( &self, client_id: &str, domain: &str, recommendation_count: usize, success: bool, )
Log pattern recommendation request
Sourcepub async fn log_playbook_recommendation(
&self,
client_id: &str,
task_description: &str,
playbook_count: usize,
success: bool,
)
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)
Sourcepub async fn log_pattern_explanation(
&self,
client_id: &str,
pattern_id: &str,
success: bool,
)
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
impl AuditLogger
Sourcepub async fn log_batch_execution(
&self,
client_id: &str,
operation_count: usize,
success_count: usize,
failure_count: usize,
success: bool,
)
pub async fn log_batch_execution( &self, client_id: &str, operation_count: usize, success_count: usize, failure_count: usize, success: bool, )
Log batch execution
Sourcepub async fn log_bulk_episodes(
&self,
client_id: &str,
episode_count: usize,
success: bool,
)
pub async fn log_bulk_episodes( &self, client_id: &str, episode_count: usize, success: bool, )
Log bulk episode retrieval
Source§impl AuditLogger
impl AuditLogger
Sourcepub 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,
)
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
Sourcepub async fn log_remove_relationship(
&self,
client_id: &str,
relationship_id: &str,
success: bool,
)
pub async fn log_remove_relationship( &self, client_id: &str, relationship_id: &str, success: bool, )
Log relationship removal
Sourcepub async fn log_get_relationships(
&self,
client_id: &str,
episode_id: &str,
total_count: usize,
success: bool,
)
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
Sourcepub async fn log_check_relationship(
&self,
client_id: &str,
from_episode_id: &str,
to_episode_id: &str,
relationship_type: &str,
exists: bool,
success: bool,
)
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
Sourcepub async fn log_dependency_graph(
&self,
client_id: &str,
episode_id: &str,
node_count: usize,
edge_count: usize,
success: bool,
)
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§impl AuditLogger
impl AuditLogger
Sourcepub async fn log_config_change(
&self,
client_id: &str,
config_key: &str,
old_value: &Value,
new_value: &Value,
success: bool,
)
pub async fn log_config_change( &self, client_id: &str, config_key: &str, old_value: &Value, new_value: &Value, success: bool, )
Log configuration change
Sourcepub async fn log_embedding_config(
&self,
client_id: &str,
provider: &str,
model: Option<&str>,
success: bool,
)
pub async fn log_embedding_config( &self, client_id: &str, provider: &str, model: Option<&str>, success: bool, )
Log embedding configuration change
Sourcepub async fn log_embedding_generation(&self, client_id: &str, success: bool)
pub async fn log_embedding_generation(&self, client_id: &str, success: bool)
Log embedding generation event
Sourcepub async fn log_embedding_search(
&self,
client_id: &str,
result_count: usize,
success: bool,
)
pub async fn log_embedding_search( &self, client_id: &str, result_count: usize, success: bool, )
Log embedding search event
Sourcepub async fn log_authentication(
&self,
client_id: &str,
auth_type: &str,
success: bool,
error: Option<&str>,
)
pub async fn log_authentication( &self, client_id: &str, auth_type: &str, success: bool, error: Option<&str>, )
Log authentication event
Sourcepub async fn log_rate_limit_violation(
&self,
client_id: &str,
operation: &str,
limit: u32,
current_count: u32,
)
pub async fn log_rate_limit_violation( &self, client_id: &str, operation: &str, limit: u32, current_count: u32, )
Log rate limit violation
Sourcepub async fn log_security_violation(
&self,
client_id: &str,
violation_type: &str,
details: &str,
)
pub async fn log_security_violation( &self, client_id: &str, violation_type: &str, details: &str, )
Log security violation
Sourcepub async fn log_code_execution(
&self,
client_id: &str,
sandbox_type: &str,
execution_time_ms: u64,
success: bool,
error: Option<&str>,
)
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
Sourcepub async fn log_relationship_change(
&self,
client_id: &str,
source_id: &str,
target_id: &str,
relationship_type: &str,
operation: &str,
success: bool,
)
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
Sourcepub async fn log_external_signal_config(
&self,
client_id: &str,
provider: &str,
db_path: &str,
enabled: bool,
success: bool,
)
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
Sourcepub async fn log_external_signal_test(
&self,
client_id: &str,
provider: &str,
success: bool,
)
pub async fn log_external_signal_test( &self, client_id: &str, provider: &str, success: bool, )
Log external signal provider connection test
Source§impl AuditLogger
impl AuditLogger
Log tag addition to episode
Log tag removal from episode
Log tag replacement on episode
Log tag search
Auto Trait Implementations§
impl Freeze for AuditLogger
impl !RefUnwindSafe for AuditLogger
impl Send for AuditLogger
impl Sync for AuditLogger
impl Unpin for AuditLogger
impl UnsafeUnpin for AuditLogger
impl !UnwindSafe for AuditLogger
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
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>
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>
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 moreSource§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read moreSource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).Source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.