Class HygieneRule
java.lang.Object
com.eqixiac.equinix.design.estate.rules.HygieneRule
- All Implemented Interfaces:
EstateRule
FindingCategory.HYGIENE: one finding per issue and resource kind, listing every affected
resource (so an estate with 80 stuck connections gets one finding, not 80).
- stuck: a connection, router or port in a pending, provisioning or failed state, created longer ago
than
stuckAfterDays(grouped by state and Equinix status; FAILED is HIGH; unknown age is skipped); - live connections and routers with no notification contacts;
- live connections, routers and ports with no project id;
- live connections with no purchase-order number.
-
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
-
HygieneRule
public HygieneRule()
-
-
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
-