Class AdminAuditEvent

Assembly: redb.Tsak.Core.dll

Snapshot of a single audited admin operation.
Produced by and dispatched to .
All fields are immutable post-construction.

public sealed class AdminAuditEvent

Inheritance

Object→AdminAuditEvent

Properties

Action

Logical action name (e.g. RestartContext, RevokeKey).

public required string Action { get; init; }

ActorApiKeyId

API key identifier used for the request, if available.

public string? ActorApiKeyId { get; init; }

ActorPrincipalName

Resolved actor (principal) name from the API key, if available.

public string? ActorPrincipalName { get; init; }

ControllerType

Controller type that owns the action.

public required string ControllerType { get; init; }

DurationMs

Action invocation duration in milliseconds.

public double DurationMs { get; init; }

ExceptionMessage

Exception message, if the action threw.

public string? ExceptionMessage { get; init; }

ExceptionType

Exception type name, if the action threw.

public string? ExceptionType { get; init; }

HttpMethod

HTTP method (GET, POST, …).

public string? HttpMethod { get; init; }

Payload

Sanitized JSON payload of the action arguments (sensitive fields redacted).

public string? Payload { get; init; }

RemoteIp

Remote IP address of the caller, if available.

public string? RemoteIp { get; init; }

RequestPath

Request path.

public string? RequestPath { get; init; }

StatusCode

HTTP-style status code returned by the action.

public int StatusCode { get; init; }

TargetResource

Identifier of the target resource (resolved from TargetParam), if any.

public string? TargetResource { get; init; }

Timestamp

UTC timestamp at which the action completed.

public required DateTimeOffset Timestamp { get; init; }

UserAgent

Request User-Agent header, if available.

public string? UserAgent { get; init; }