Table of Contents

Constructor QueryFingerprintGroup

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

QueryFingerprintGroup(QueryFingerprint, int, TimeSpan, int, int, QueryCommandKind, int, IReadOnlyList<QueryRecord>?, IReadOnlyList<string>?)

Initializes a new instance of the QueryFingerprintGroup class.

public QueryFingerprintGroup(QueryFingerprint fingerprint, int occurrences, TimeSpan totalDuration, int firstSequence, int lastSequence, QueryCommandKind kind, int failureCount = 0, IReadOnlyList<QueryRecord>? samples = null, IReadOnlyList<string>? tags = null)

Parameters

fingerprint QueryFingerprint

The shared fingerprint.

occurrences int

How many commands in the session shared it.

totalDuration TimeSpan

The summed duration of those commands.

firstSequence int

The sequence number of the first occurrence.

lastSequence int

The sequence number of the last occurrence.

kind QueryCommandKind

The command kind shared by the group.

failureCount int

How many of the occurrences failed.

samples IReadOnlyList<QueryRecord>

A bounded set of representative records kept as evidence.

tags IReadOnlyList<string>

Query tags recognized on any occurrence.

Exceptions

ArgumentNullException

fingerprint is null.

ArgumentOutOfRangeException

occurrences is less than one.