pub struct AuditEvent {
pub timestamp: i64,
pub actor: Actor,
pub context: String,
pub operation: Operation,
pub target: ResourceRef,
pub outcome: Outcome,
pub source: Source,
pub session_id: String,
pub reason: Option<String>,
pub on_behalf_of: Option<String>,
}Expand description
A single audit record. Serialized with serde; the same shape feeds the incident
timeline export (one format, two consumers).
Fields§
§timestamp: i64Unix epoch milliseconds — a typed instant, not a pre-formatted string, so it sorts and localizes correctly.
actor: Actor§context: StringCluster/context id — never a secret.
operation: Operation§target: ResourceRef§outcome: Outcome§source: SourceWhich projection initiated the action (MCP is a source, not an operation).
session_id: StringIdentifies the debugging session / multi-step agent invocation, so the incident timeline can group related events.
reason: Option<String>Recorded break-glass justification (required for the break-glass guardrail to be a complete control).
on_behalf_of: Option<String>Who initiated the session on the agent’s behalf (an agent acts under its own ServiceAccount, but the audit question is still “who asked”).
Trait Implementations§
Source§impl Clone for AuditEvent
impl Clone for AuditEvent
Source§fn clone(&self) -> AuditEvent
fn clone(&self) -> AuditEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AuditEvent
impl Debug for AuditEvent
Source§impl<'de> Deserialize<'de> for AuditEvent
impl<'de> Deserialize<'de> for AuditEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for AuditEvent
Source§impl PartialEq for AuditEvent
impl PartialEq for AuditEvent
Source§impl Serialize for AuditEvent
impl Serialize for AuditEvent
impl StructuralPartialEq for AuditEvent
Auto Trait Implementations§
impl Freeze for AuditEvent
impl RefUnwindSafe for AuditEvent
impl Send for AuditEvent
impl Sync for AuditEvent
impl Unpin for AuditEvent
impl UnsafeUnpin for AuditEvent
impl UnwindSafe for AuditEvent
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