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
kindQueryFindingKindWhat kind of evidence this finding reports.
severityQueryGuardSeverityHow strongly QueryGuard reacts to it.
messagestringA self-contained, human-readable summary.
ruleNamestringThe policy rule that produced it.
fingerprintQueryFingerprintThe fingerprint the finding concerns, when it concerns one.
expectedlong?The configured limit, when the rule has one.
actuallong?The observed value, when the rule has one.
evidenceIReadOnlyList<string>Supporting detail lines, already redacted.
isIgnoredboolWhether an allowlist entry matched this finding.
ignoreReasonstringThe reason recorded on the matching allowlist entry.
stackTracestringA filtered first-occurrence stack trace, when capture is enabled.
Exceptions
- ArgumentException
messageis empty or whitespace.