Skip to content

AuditQuery

Namespace AgentPrism · Assembly AgentPrism.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. The tenant of the caller is used when it is null.

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