Class OnDemandToTermRule

java.lang.Object
com.eqixiac.equinix.design.estate.rules.OnDemandToTermRule
All Implemented Interfaces:
EstateRule

public final class OnDemandToTermRule extends Object implements 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.