Table of Contents

Constructor QueryGuardResult

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

QueryGuardResult(string, Guid, string, DateTimeOffset, TimeSpan, IReadOnlyList<QueryRecord>, IReadOnlyList<QueryFingerprintGroup>, IReadOnlyList<QueryFinding>)

Initializes a new instance of the QueryGuardResult class.

public QueryGuardResult(string sessionName, Guid sessionId, string policyName, DateTimeOffset startedAt, TimeSpan elapsed, IReadOnlyList<QueryRecord> records, IReadOnlyList<QueryFingerprintGroup> groups, IReadOnlyList<QueryFinding> findings)

Parameters

sessionName string

The name of the session that was evaluated.

sessionId Guid

The identifier of the session that was evaluated.

policyName string

The name of the policy it was evaluated against.

startedAt DateTimeOffset

When the session opened, in UTC.

elapsed TimeSpan

How long the session was open.

records IReadOnlyList<QueryRecord>

Every captured command, ordered by sequence number.

groups IReadOnlyList<QueryFingerprintGroup>

Fingerprint groups, ordered by descending occurrence count.

findings IReadOnlyList<QueryFinding>

Findings, ordered by descending severity then by rule name.

Exceptions

ArgumentNullException

A required argument is null.