Class IdleResourceRule
java.lang.Object
com.eqixiac.equinix.design.estate.rules.IdleResourceRule
- All Implemented Interfaces:
EstateRule
FindingCategory.IDLE_OR_UNUSED: resources that are held but not used.
- an
ACTIVEport the API reports with zero connections (unpriced: the rate card has no port prices); - a live connection with utilisation data whose peak over the window is zero (saving: its price);
- a provisioned Cloud Router with no connections (saving: its price);
- service tokens that expired or are past their expiry date unredeemed (one finding);
- deprovisioned or deleted records still returned by the API (one informational 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
-
IdleResourceRule
public IdleResourceRule()
-
-
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
-