Enum QueryGuardSeverity
- Namespace
- QueryGuard
- Assembly
- QueryGuard.Core.dll
How strongly QueryGuard reacts when a rule is not satisfied.
public enum QueryGuardSeverity
Fields
Information = 0The rule is evaluated and reported, but never changes the outcome. Used for informational evidence such as a recorded command failure.
Warning = 1The rule was not satisfied and the result is reported, but IsSuccess stays true.
Failure = 2The rule was not satisfied and the result is a failure. In a test this is what
QueryGuardAssertturns into a thrown exception; in an HTTP request it only affects reporting, because the middleware never alters application behavior.
Remarks
Severity is configured per rule rather than per policy, so a single policy can warn about a repeated-query candidate while failing outright on a per-fingerprint budget breach.