pub struct CallEvent {
pub ts: String,
pub call_id: String,
pub tool_id: String,
pub caller_id: Option<String>,
pub granted_capabilities: Vec<String>,
pub duration_ms: u64,
pub outcome: Outcome,
pub tier: String,
pub dry_run: bool,
pub schema_version: u32,
pub secrets_resolved: bool,
pub cursor_page: Option<u32>,
}Expand description
One per-call audit event. Emitted at every Request::RunTool
return point (success, invalid_args, execution_failed, cap_denied,
rate_limited, tool_not_found). Ping / Hello / ToolList / ToolSchema
do NOT emit events in v1.
Fields§
§ts: String§call_id: String§tool_id: String§caller_id: Option<String>§granted_capabilities: Vec<String>§duration_ms: u64§outcome: Outcome§tier: String§dry_run: bool§schema_version: u32§secrets_resolved: booltrue iff a TokenBroker was configured AND it returned
Ok(Some(_)) for this caller (SP-token-broker-phase1). Always
false for early-return paths (capability denied, dry-run,
rate-limited, tool-not-found) and for servers without a broker.
No key names or values are recorded.
cursor_page: Option<u32>SP-pagination-v1 — 1-based page index for paginated calls. None
for non-paginated dispatches (the vast majority of events; saves
bytes in the audit log). Some(1) for the initial RunTool that
returned a cursor; Some(2..) for each RunToolContinue.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CallEvent
impl<'de> Deserialize<'de> for CallEvent
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
Auto Trait Implementations§
impl Freeze for CallEvent
impl RefUnwindSafe for CallEvent
impl Send for CallEvent
impl Sync for CallEvent
impl Unpin for CallEvent
impl UnsafeUnpin for CallEvent
impl UnwindSafe for CallEvent
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