Constructor CompletedQueryGuardSession
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
CompletedQueryGuardSession(string, Guid, QueryGuardPolicy, DateTimeOffset, TimeSpan, IReadOnlyList<QueryRecord>, int)
Initializes a new instance of the CompletedQueryGuardSession class.
public CompletedQueryGuardSession(string name, Guid id, QueryGuardPolicy policy, DateTimeOffset startedAt, TimeSpan elapsed, IReadOnlyList<QueryRecord> records, int droppedRecordCount = 0)
Parameters
namestringWhat the session measured.
idGuidThe session identifier.
policyQueryGuardPolicyThe policy the session is evaluated against.
startedAtDateTimeOffsetWhen the session opened, in UTC.
elapsedTimeSpanHow long the session was open.
recordsIReadOnlyList<QueryRecord>The captured commands, in capture order.
droppedRecordCountintHow many records arrived after completion.
Exceptions
- ArgumentNullException
A required argument is null.