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
fingerprintQueryFingerprintThe shared fingerprint.
occurrencesintHow many commands in the session shared it.
totalDurationTimeSpanThe summed duration of those commands.
firstSequenceintThe sequence number of the first occurrence.
lastSequenceintThe sequence number of the last occurrence.
kindQueryCommandKindThe command kind shared by the group.
failureCountintHow many of the occurrences failed.
samplesIReadOnlyList<QueryRecord>A bounded set of representative records kept as evidence.
tagsIReadOnlyList<string>Query tags recognized on any occurrence.
Exceptions
- ArgumentNullException
fingerprintis null.- ArgumentOutOfRangeException
occurrencesis less than one.