Table of Contents

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

name string

What the session measured.

id Guid

The session identifier.

policy QueryGuardPolicy

The policy the session is evaluated against.

startedAt DateTimeOffset

When the session opened, in UTC.

elapsed TimeSpan

How long the session was open.

records IReadOnlyList<QueryRecord>

The captured commands, in capture order.

droppedRecordCount int

How many records arrived after completion.

Exceptions

ArgumentNullException

A required argument is null.