pub struct AuditEntry {
pub id: Option<String>,
pub created_at: Option<DateTime<Utc>>,
pub updated_at: Option<DateTime<Utc>>,
pub archived_at: Option<DateTime<Utc>>,
pub type: Option<String>,
pub organization: Option<Organization>,
pub actor: Option<User>,
pub actor_id: Option<String>,
pub ip: Option<String>,
pub country_code: Option<String>,
pub metadata: Option<Value>,
pub request_information: Option<Value>,
}Expand description
A workspace audit log entry recording a security or compliance-relevant action. Audit entries capture who performed an action, when, from what IP address and country, and include type-specific metadata. The audit log is partitioned by time for performance and is accessible only to workspace administrators. Examples of audited actions include user authentication events, permission changes, data exports, and workspace setting modifications.
Fields§
§id: Option<String>The unique identifier of the entity.
created_at: Option<DateTime<Utc>>The time at which the entity was created.
updated_at: Option<DateTime<Utc>>The last time at which the entity was meaningfully updated. This is the same as the creation time if the entity hasn’t been updated after creation.
archived_at: Option<DateTime<Utc>>The time at which the entity was archived. Null if the entity has not been archived.
type: Option<String>The type of audited action (e.g., user authentication, permission change, data export, setting modification).
organization: Option<Organization>The workspace the audit log belongs to.
actor: Option<User>The user that caused the audit entry to be created.
actor_id: Option<String>The ID of the user that caused the audit entry to be created.
ip: Option<String>The IP address of the actor at the time the audited action was performed. Null if the IP was not captured.
country_code: Option<String>The ISO 3166-1 alpha-2 country code derived from the request IP address. Null if geo-location could not be determined.
metadata: Option<Value>Additional metadata related to the audit entry.
request_information: Option<Value>Additional information related to the request which performed the action.
Trait Implementations§
Source§impl Clone for AuditEntry
impl Clone for AuditEntry
Source§fn clone(&self) -> AuditEntry
fn clone(&self) -> AuditEntry
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more