Table of Contents

Enum QueryGuardSeverity

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

How strongly QueryGuard reacts when a rule is not satisfied.

public enum QueryGuardSeverity

Fields

Information = 0

The rule is evaluated and reported, but never changes the outcome. Used for informational evidence such as a recorded command failure.

Warning = 1

The rule was not satisfied and the result is reported, but IsSuccess stays true.

Failure = 2

The rule was not satisfied and the result is a failure. In a test this is what QueryGuardAssert turns 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.