Class AuditEntry
Represents an audit log entry.
public record AuditEntry : IEquatable<AuditEntry>
- Inheritance
-
AuditEntry
- Implements
- Inherited Members
Properties
Action
Specific action performed (e.g., "UserDeleted", "RoleChanged").
public required string Action { get; init; }
Property Value
ActorId
ID of the user performing the action (null for system events).
public int? ActorId { get; init; }
Property Value
- int?
ActorName
Email/name of the user performing the action.
public string? ActorName { get; init; }
Property Value
Category
Category of the audit event.
public required AuditCategory Category { get; init; }
Property Value
Description
Human-readable description of the action.
public required string Description { get; init; }
Property Value
IpAddress
IP address of the request (if applicable).
public string? IpAddress { get; init; }
Property Value
Metadata
Additional metadata as key-value pairs.
public Dictionary<string, object>? Metadata { get; init; }
Property Value
Success
Whether the action was successful.
public bool Success { get; init; }
Property Value
TargetId
ID of the affected entity (user, project, build, etc.).
public string? TargetId { get; init; }
Property Value
TargetType
Type of the affected entity.
public string? TargetType { get; init; }
Property Value
Timestamp
Timestamp of the event (UTC).
public DateTime Timestamp { get; init; }