Class EstateAnalyzer

java.lang.Object
com.eqixiac.equinix.design.estate.EstateAnalyzer

public final class EstateAnalyzer extends Object
Analyses what a customer already runs on Equinix and produces a priced, evidence-backed improvement report. Read-only: it reads inventory, metrics and prices and recommends; it never changes a resource.
EstateReport report = EstateAnalyzer.builder(fabric)
        .scope(EstateScope.projects("626329c0-..."))
        .window(Duration.ofDays(30))          // also reads utilisation
        .analyze();
System.out.println(report.toMarkdown());

// Offline, reproducible: analyse a stored snapshot.
EstateReport again = EstateAnalyzer.fromSnapshot(EstateInventory.fromJson(json)).analyze();

Defaults: the rules of DefaultRules.all(), EstateThresholds.defaults(), and RateCard.standardChain(fabric) (live Equinix prices, then the bundled reference card) for a live run or ReferenceRateCard.standard() for an offline run. A live run must be scoped; see EstateScope.

  • Method Details

    • builder

      public static EstateAnalyzer.Builder builder(Fabric fabric)
      Starts a live analysis.
      Parameters:
      fabric - the Fabric client
      Returns:
      a builder
    • fromSnapshot

      public static EstateAnalyzer.Builder fromSnapshot(EstateInventory inventory)
      Starts an offline analysis of a stored snapshot. No API is called unless a rate card that calls one is supplied.
      Parameters:
      inventory - the snapshot
      Returns:
      a builder