Table of Contents

Constructor QueryFinding

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

QueryFinding(QueryFindingKind, QueryGuardSeverity, string, string, QueryFingerprint?, long?, long?, IReadOnlyList<string>?, bool, string?, string?)

Initializes a new instance of the QueryFinding class.

public QueryFinding(QueryFindingKind kind, QueryGuardSeverity severity, string message, string ruleName, QueryFingerprint? fingerprint = null, long? expected = null, long? actual = null, IReadOnlyList<string>? evidence = null, bool isIgnored = false, string? ignoreReason = null, string? stackTrace = null)

Parameters

kind QueryFindingKind

What kind of evidence this finding reports.

severity QueryGuardSeverity

How strongly QueryGuard reacts to it.

message string

A self-contained, human-readable summary.

ruleName string

The policy rule that produced it.

fingerprint QueryFingerprint

The fingerprint the finding concerns, when it concerns one.

expected long?

The configured limit, when the rule has one.

actual long?

The observed value, when the rule has one.

evidence IReadOnlyList<string>

Supporting detail lines, already redacted.

isIgnored bool

Whether an allowlist entry matched this finding.

ignoreReason string

The reason recorded on the matching allowlist entry.

stackTrace string

A filtered first-occurrence stack trace, when capture is enabled.

Exceptions

ArgumentException

message is empty or whitespace.