Table of Contents

Class AuditSearchCriteria

Namespace
Excalibur.Data.ElasticSearch.Security
Assembly
Excalibur.Data.ElasticSearch.dll

Represents audit search criteria.

public sealed class AuditSearchCriteria
Inheritance
AuditSearchCriteria
Inherited Members

Properties

EndTime

Gets or sets the end time for filtering audit events.

public DateTimeOffset? EndTime { get; set; }

Property Value

DateTimeOffset?

The latest timestamp to include in search results, or null for no end time limit.

EventType

Gets or sets the event type for filtering audit events by type.

public string? EventType { get; set; }

Property Value

string

The event type to filter by, or null to include all event types.

MaxResults

Gets or sets the maximum number of results to return.

public int MaxResults { get; set; }

Property Value

int

The maximum number of audit events to include in search results. Default is 100.

Severity

Gets or sets the severity level for filtering audit events by severity.

public string? Severity { get; set; }

Property Value

string

The severity level to filter by, or null to include all severities.

Skip

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

public int Skip { get; set; }

Property Value

int

The number of audit events to skip before returning results. Default is 0.

SortDescending

Gets or sets a value indicating whether to sort results in descending order.

public bool SortDescending { get; set; }

Property Value

bool

true to sort results in descending order; false for ascending order. Default is true .

SourceIpAddress

Gets or sets the source IP address for filtering audit events by origin.

public string? SourceIpAddress { get; set; }

Property Value

string

The source IP address to filter by, or null to include all IP addresses.

StartTime

Gets or sets the start time for filtering audit events.

public DateTimeOffset? StartTime { get; set; }

Property Value

DateTimeOffset?

The earliest timestamp to include in search results, or null for no start time limit.

UserId

Gets or sets the user identifier for filtering audit events by user.

public string? UserId { get; set; }

Property Value

string

The user ID to filter by, or null to include all users.