Skip to main content

Module budget

Module budget 

Source
Expand description

Budget policy engine.

Given a crate::model::Measurement, a BudgetPolicy, and an optional baseline figure, evaluate produces a list of structured PolicyResults — one per clause that the policy actually constrains.

Structs§

BudgetPolicy
A budget policy attached to a scenario (or used as a project default).
PolicyResult
The result of evaluating one policy clause.

Enums§

PolicyStatus
Tri-state outcome of a single policy check.
Severity
Severity classification, independent of pass/fail (a Warn can still be Error-severity for a critical scenario).

Functions§

evaluate
Evaluate every active clause of policy against measurement.
overall_status
Roll a set of results up into a single worst-case status.