Table of Contents

Class AuditEntry

Namespace
Ando.Server.Services
Assembly
Ando.Server.dll

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

string

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

string

Category

Category of the audit event.

public required AuditCategory Category { get; init; }

Property Value

AuditCategory

Description

Human-readable description of the action.

public required string Description { get; init; }

Property Value

string

IpAddress

IP address of the request (if applicable).

public string? IpAddress { get; init; }

Property Value

string

Metadata

Additional metadata as key-value pairs.

public Dictionary<string, object>? Metadata { get; init; }

Property Value

Dictionary<string, object>

Success

Whether the action was successful.

public bool Success { get; init; }

Property Value

bool

TargetId

ID of the affected entity (user, project, build, etc.).

public string? TargetId { get; init; }

Property Value

string

TargetType

Type of the affected entity.

public string? TargetType { get; init; }

Property Value

string

Timestamp

Timestamp of the event (UTC).

public DateTime Timestamp { get; init; }

Property Value

DateTime