Table of Contents

Class QueryBudgetEvaluator

Namespace
QueryGuard
Assembly
QueryGuard.Core.dll

Evaluates a policy's budgets against a completed session's groups and produces findings.

public sealed class QueryBudgetEvaluator : IQueryBudgetEvaluator
Inheritance
QueryBudgetEvaluator
Implements
Inherited Members

Remarks

Split from QueryGuardAnalyzer because these are two different jobs. Grouping asks "what happened?" and has one right answer. Budgets ask "is that acceptable?" and the answer is whatever the user configured, so the rules live where they can be read as a list, and each one produces a finding carrying the numbers that justify it.

Every rule is opt-in. A policy with no budgets configured produces no budget findings at all, which is what makes installing QueryGuard safe: it reports what it sees before it starts failing anything.

Methods

Evaluate(CompletedQueryGuardSession, IReadOnlyList<QueryFingerprintGroup>)

Evaluates the session's policy against what it recorded.