Table of Contents

Class AuditQuery

Namespace
Excalibur.Compliance
Assembly
Excalibur.Compliance.Abstractions.dll

Represents query parameters for searching audit events.

public sealed record AuditQuery : IEquatable<AuditQuery>
Inheritance
AuditQuery
Implements
Inherited Members

Properties

Action

Gets or sets the action to filter by (exact match).

public string? Action { get; init; }

Property Value

string

ActorId

Gets or sets the actor ID to filter by.

public string? ActorId { get; init; }

Property Value

string

ApplicationName

Gets or sets the application name to filter by.

public string? ApplicationName { get; init; }

Property Value

string

CorrelationId

Gets or sets the correlation ID to filter by.

public string? CorrelationId { get; init; }

Property Value

string

EndDate

Gets or sets the end of the time range (inclusive).

public DateTimeOffset? EndDate { get; init; }

Property Value

DateTimeOffset?

EventTypes

Gets or sets the event types to filter by.

public IReadOnlyList<AuditEventType>? EventTypes { get; init; }

Property Value

IReadOnlyList<AuditEventType>

IpAddress

Gets or sets the IP address to filter by.

public string? IpAddress { get; init; }

Property Value

string

MaxResults

Gets or sets the maximum number of results to return. Default is 100.

public int MaxResults { get; init; }

Property Value

int

MinimumClassification

Gets or sets the minimum classification level to filter by.

public DataClassification? MinimumClassification { get; init; }

Property Value

DataClassification?

OrderByDescending

Gets or sets a value indicating whether to sort by timestamp descending. Default is true (newest first).

public bool OrderByDescending { get; init; }

Property Value

bool

Outcomes

Gets or sets the outcomes to filter by.

public IReadOnlyList<AuditOutcome>? Outcomes { get; init; }

Property Value

IReadOnlyList<AuditOutcome>

ResourceId

Gets or sets the resource ID to filter by.

public string? ResourceId { get; init; }

Property Value

string

ResourceType

Gets or sets the resource type to filter by.

public string? ResourceType { get; init; }

Property Value

string

Skip

Gets or sets the number of results to skip for pagination.

public int Skip { get; init; }

Property Value

int

StartDate

Gets or sets the start of the time range (inclusive).

public DateTimeOffset? StartDate { get; init; }

Property Value

DateTimeOffset?