pub struct AuditEvent<'a> {
pub timestamp: i64,
pub actor_did: &'a str,
pub action: &'a str,
pub status: &'a str,
pub trace_id: Option<String>,
}Expand description
Represents a standardized security event for SIEM ingestion.
Args:
timestamp- Unix epoch seconds when the event was recorded.actor_did- The KERI decentralized identifier initiating the action.action- The specific capability or operation attempted.status- The resolution of the event (e.g., “Success”, “Denied”).trace_id- Optional W3C traceparent-compatible trace identifier.
Usage:
use auths_telemetry::build_audit_event;
let event = build_audit_event("did:keri:abc...", "assume_role", "Denied", 0);Fields§
§timestamp: i64§actor_did: &'a str§action: &'a str§status: &'a str§trace_id: Option<String>Trait Implementations§
Source§impl<'a> JsonSchema for AuditEvent<'a>
impl<'a> JsonSchema for AuditEvent<'a>
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl<'a> Freeze for AuditEvent<'a>
impl<'a> RefUnwindSafe for AuditEvent<'a>
impl<'a> Send for AuditEvent<'a>
impl<'a> Sync for AuditEvent<'a>
impl<'a> Unpin for AuditEvent<'a>
impl<'a> UnsafeUnpin for AuditEvent<'a>
impl<'a> UnwindSafe for AuditEvent<'a>
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