Skip to content
Tracon

AuditQuery

Namespace Tracon · Assembly Tracon.Abstractions.dll

The criteria that filter an audit trail query.

public sealed record AuditQuery : IEquatable<AuditQuery>

objectAuditQuery

IEquatable<AuditQuery>

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

public AuditQuery()

Gets the action filter, for example agent.update.

public string? Action { get; init; }

string?

Gets the actor filter. null includes every actor.

public string? Actor { get; init; }

string?

Gets the lower bound: the records written after this time.

public DateTimeOffset? After { get; init; }

DateTimeOffset?

Gets the upper bound: the records written before this time.

public DateTimeOffset? Before { get; init; }

DateTimeOffset?

Gets the entity filter, for example agent:support.

public string? Entity { get; init; }

string?

Gets the upper number of records to return.

public int Limit { get; init; }

int

Gets the tenant id. AMBIENT fallback: the caller’s own ITenantContext.TenantId is used when this is null or empty — never “every tenant”. See IAuditLog’s remarks for the full contract.

public string? TenantId { get; init; }

string?

public override bool Equals(object? obj)

obj object?

bool

public bool Equals(AuditQuery? other)

other AuditQuery?

bool

public override int GetHashCode()

int

public override string ToString()

string

public static bool operator ==(AuditQuery? left, AuditQuery? right)

left AuditQuery?

right AuditQuery?

bool

public static bool operator !=(AuditQuery? left, AuditQuery? right)

left AuditQuery?

right AuditQuery?

bool