Class OnDemandToTermRule
java.lang.Object
com.eqixiac.equinix.design.estate.rules.OnDemandToTermRule
- All Implemented Interfaces:
EstateRule
FindingCategory.ON_DEMAND_TO_TERM: a live, on-demand connection or Cloud Router, older
than minAgeForTermDays, that is cheaper on one of the candidate terms.
Each candidate term is priced through the rate card. A term is a saving only when its monthly price is lower than on-demand; the rule recommends the term with the largest monthly saving and reports every priced term and the break-even month (when a term adds a one-time charge). A rate card that has no term axis (the bundled reference card) prices every term the same, so it never produces this finding: a term saving is only claimed from term-specific prices. A resource whose age is unknown is skipped. When on-demand or every term is unpriced the rule says so in an unpriced, low-confidence finding.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate(EstateInventory inv, UtilizationSnapshot util, RuleContext ctx) Evaluates the rule.name()A short, stable name, for exampleright-size.
-
Constructor Details
-
OnDemandToTermRule
public OnDemandToTermRule()
-
-
Method Details
-
name
Description copied from interface:EstateRuleA short, stable name, for exampleright-size.- Specified by:
namein interfaceEstateRule- Returns:
- the name
-
evaluate
Description copied from interface:EstateRuleEvaluates the rule.- Specified by:
evaluatein interfaceEstateRule- Parameters:
inv- the snapshotutil- the utilisation (UtilizationSnapshot.none()when not collected)ctx- pricing, thresholds and the reference time- Returns:
- the findings, possibly empty
-