pub struct AuditEvent {Show 13 fields
pub id: String,
pub trail: String,
pub event: String,
pub created_at: String,
pub received_at: String,
pub organization_id: Option<String>,
pub actor: EventActor,
pub targets: Vec<EventTarget>,
pub metadata: HashMap<String, String>,
pub data: HashMap<String, Value>,
pub context: HashMap<String, Value>,
pub hash: String,
pub schema_version: Option<i32>,
}Fields§
§id: StringThe producer’s event id, or a generated ULID when none was sent.
trail: StringThe audit log trail the event was indexed on.
event: StringThe event type, e.g. invoice.voided.
created_at: StringRFC 3339, when the producer says the event happened.
received_at: StringRFC 3339, when Santati indexed the event.
organization_id: Option<String>The end-customer organization the producer attributed the event to; empty when none.
actor: EventActorWho acted: the actor columns first, the producer’s payload behind them.
targets: Vec<EventTarget>The objects this event acted on, in the producer’s order.
metadata: HashMap<String, String>The event’s own key/value map; keys and values are strings on the wire.
data: HashMap<String, Value>The producer’s own payload for the event, stored verbatim.
context: HashMap<String, Value>The producer’s extra context, stored verbatim; the read path falls back to it for actor and targets when the top-level members are absent.
hash: Stringsha256 of this event’s chain record; empty until the seal task has run.
schema_version: Option<i32>The event schema version the event was validated against.