pub struct AuditLogEntry {
pub id: String,
pub session_id: String,
pub source: String,
pub operation: String,
pub detail: Value,
pub exit_code: Option<i64>,
pub output_truncated: Option<String>,
pub started_at: String,
pub duration_ms: i64,
pub row_hash: Option<String>,
pub prev_hash: Option<String>,
}Expand description
One row of GET /v1/sandboxes/{id}/log’s audit trail – one exec/file
operation, whether issued by the agent (source: "agent") or by a human
during a takeover session (source: "human_takeover").
Fields§
§id: String§session_id: String§source: String"agent" or "human_takeover".
operation: String§detail: Value§exit_code: Option<i64>§output_truncated: Option<String>§started_at: String§duration_ms: i64§row_hash: Option<String>Hash-chain digest for this row (docs/TAMPER-EVIDENT-AUDIT-DESIGN.md),
or None for legacy rows written before hash-chaining was added.
prev_hash: Option<String>Trait Implementations§
Source§impl Clone for AuditLogEntry
impl Clone for AuditLogEntry
Source§impl Debug for AuditLogEntry
impl Debug for AuditLogEntry
Source§impl<'de> Deserialize<'de> for AuditLogEntry
impl<'de> Deserialize<'de> for AuditLogEntry
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 AuditLogEntry
impl RefUnwindSafe for AuditLogEntry
impl Send for AuditLogEntry
impl Sync for AuditLogEntry
impl Unpin for AuditLogEntry
impl UnsafeUnpin for AuditLogEntry
impl UnwindSafe for AuditLogEntry
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