Skip to content

Class AuditEntry

Namespace: Cephalon.Abstractions.Audit
Assembly: Cephalon.Abstractions.dll

Describes one auditable operation recorded by the active audit implementation.

public sealed class AuditEntry

objectAuditEntry

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

AuditEntry(string, string, string, string, string, string?, DateTimeOffset, AuditActor, AuditOutcome, string?, string?, IReadOnlyList<AuditChange>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)

Section titled “ AuditEntry(string, string, string, string, string, string?, DateTimeOffset, AuditActor, AuditOutcome, string?, string?, IReadOnlyList<AuditChange>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)”

Creates a new audit entry.

public AuditEntry(string id, string category, string action, string summary, string subjectType, string? subjectId, DateTimeOffset occurredAtUtc, AuditActor actor, AuditOutcome outcome = AuditOutcome.Unknown, string? tenantId = null, string? correlationId = null, IReadOnlyList<AuditChange>? changes = null, IReadOnlyList<string>? tags = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

The stable audit-entry identifier.

category string

The logical audit category such as identity, tenant, or billing.

action string

The logical action identifier associated with the audit event.

summary string

The human-readable audit summary.

subjectType string

The logical subject type associated with the entry.

subjectId string?

The stable subject identifier associated with the entry when one is known.

occurredAtUtc DateTimeOffset

The time at which the audited operation occurred.

actor AuditActor

The actor responsible for the audited operation.

outcome AuditOutcome

The outcome recorded for the audited operation.

tenantId string?

The tenant identifier associated with the audited operation.

correlationId string?

The correlation identifier associated with the audited operation.

changes IReadOnlyList<AuditChange>?

Optional field-level changes captured for the operation.

tags IReadOnlyList<string>?

Optional descriptive tags associated with the entry.

metadata IReadOnlyDictionary<string, string>?

Optional audit metadata.

Gets the logical action identifier associated with the audit event.

public string Action { get; }

string

Gets the actor responsible for the audited operation.

public AuditActor Actor { get; }

AuditActor

Gets the logical audit category.

public string Category { get; }

string

Gets the field-level changes captured for the operation.

public IReadOnlyList<AuditChange> Changes { get; }

IReadOnlyList<AuditChange>

Gets the correlation identifier associated with the audited operation.

public string? CorrelationId { get; }

string?

Gets the stable audit-entry identifier.

public string Id { get; }

string

Gets audit metadata associated with the entry.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the time at which the audited operation occurred.

public DateTimeOffset OccurredAtUtc { get; }

DateTimeOffset

Gets the outcome recorded for the audited operation.

public AuditOutcome Outcome { get; }

AuditOutcome

Gets the stable subject identifier associated with the entry when one is known.

public string? SubjectId { get; }

string?

Gets the logical subject type associated with the entry.

public string SubjectType { get; }

string

Gets the human-readable audit summary.

public string Summary { get; }

string

Gets descriptive tags associated with the entry.

public IReadOnlyList<string> Tags { get; }

IReadOnlyList<string>

Gets the tenant identifier associated with the audited operation.

public string? TenantId { get; }

string?