Interface EstateRule
- All Known Implementing Classes:
CapacityRiskRule, ConsolidateBehindRouterRule, HygieneRule, IdleResourceRule, OnDemandToTermRule, RightSizeRule, SinglePointOfFailureRule
public interface EstateRule
One analysis rule: a small, pure function from an estate snapshot (and optional utilisation) to
findings. Rules never call an API and never change a resource; prices come from
RuleContext.pricing().
The default rules are in design.estate.rules; supply your own through
EstateAnalyzer.Builder.rules(...) or addRule(...).
-
Method Summary
Modifier and TypeMethodDescriptionevaluate(EstateInventory inventory, UtilizationSnapshot utilization, RuleContext context) Evaluates the rule.name()A short, stable name, for exampleright-size.
-
Method Details
-
name
-
evaluate
List<EstateFinding> evaluate(EstateInventory inventory, UtilizationSnapshot utilization, RuleContext context) Evaluates the rule.- Parameters:
inventory- the snapshotutilization- the utilisation (UtilizationSnapshot.none()when not collected)context- pricing, thresholds and the reference time- Returns:
- the findings, possibly empty
-