Class AuditSearchResult
- Namespace
- Excalibur.Data.ElasticSearch.Security
- Assembly
- Excalibur.Data.ElasticSearch.dll
Represents the result of an audit event search operation.
public sealed class AuditSearchResult
- Inheritance
-
AuditSearchResult
- Inherited Members
Remarks
Initializes a new instance of the AuditSearchResult class.
Constructors
AuditSearchResult(Guid, long, IEnumerable<SecurityAuditEvent>)
Represents the result of an audit event search operation.
public AuditSearchResult(Guid searchId, long totalMatches, IEnumerable<SecurityAuditEvent> events)
Parameters
searchIdGuidThe unique identifier for this search operation.
totalMatcheslongThe total number of events matching the search criteria.
eventsIEnumerable<SecurityAuditEvent>The audit events returned by the search.
Remarks
Initializes a new instance of the AuditSearchResult class.
Properties
ContinuationToken
Gets the search continuation token for pagination.
public string? ContinuationToken { get; init; }
Property Value
- string
The search continuation token for pagination.
Events
Gets the audit events returned by the search.
public IReadOnlyList<SecurityAuditEvent> Events { get; }
Property Value
- IReadOnlyList<SecurityAuditEvent>
The audit events returned by the search.
ExecutionTimeMs
Gets the search execution time in milliseconds.
public long ExecutionTimeMs { get; init; }
Property Value
- long
The search execution time in milliseconds.
IsTruncated
Gets a value indicating whether the search results were truncated.
public bool IsTruncated { get; init; }
Property Value
- bool
A value indicating whether the search results were truncated.
Metadata
Gets the search result metadata.
public IReadOnlyDictionary<string, object> Metadata { get; init; }
Property Value
- IReadOnlyDictionary<string, object>
The search result metadata.
SearchId
Gets the unique identifier for this search operation.
public Guid SearchId { get; }
Property Value
- Guid
The unique identifier for this search operation.
SearchedAt
Gets the timestamp when this search was performed.
public DateTimeOffset SearchedAt { get; }
Property Value
- DateTimeOffset
The timestamp when this search was performed.
TotalMatches
Gets the total number of events matching the search criteria.
public long TotalMatches { get; }
Property Value
- long
The total number of events matching the search criteria.
Warnings
Gets any warnings encountered during the search.
public IReadOnlyList<string> Warnings { get; init; }
Property Value
- IReadOnlyList<string>
Any warnings encountered during the search.