Table of Contents

Class AuditQuery

Namespace
JD.AI.Core.Governance.Audit
Assembly
JD.AI.Core.dll

Filter criteria for querying audit events.

public sealed class AuditQuery
Inheritance
AuditQuery
Inherited Members

Properties

Action

Filter by action (exact match, case-insensitive).

public string? Action { get; init; }

Property Value

string

From

Only return events at or after this timestamp.

public DateTimeOffset? From { get; init; }

Property Value

DateTimeOffset?

Limit

Maximum number of events to return (default 50, max 1000).

public int Limit { get; init; }

Property Value

int

MinSeverity

Filter by minimum severity level.

public AuditSeverity? MinSeverity { get; init; }

Property Value

AuditSeverity?

Offset

Number of events to skip for pagination.

public int Offset { get; init; }

Property Value

int

Resource

Filter by resource (contains, case-insensitive).

public string? Resource { get; init; }

Property Value

string

SessionId

Filter by session ID (exact match).

public string? SessionId { get; init; }

Property Value

string

TenantId

Filter by tenant ID. When set, only events from this tenant are returned.

public string? TenantId { get; init; }

Property Value

string

Until

Only return events before this timestamp.

public DateTimeOffset? Until { get; init; }

Property Value

DateTimeOffset?

UserId

Filter by user ID (exact match).

public string? UserId { get; init; }

Property Value

string