Class EstateThresholds.Builder

java.lang.Object
com.eqixiac.equinix.design.estate.EstateThresholds.Builder
Enclosing class:
EstateThresholds

public static final class EstateThresholds.Builder extends Object
Builds thresholds, starting from the defaults.
  • Method Details

    • rightSize

      public EstateThresholds.Builder rightSize(double downBelowPercent, double upAbovePercent)
      Sets the right-size thresholds.
      Parameters:
      downBelowPercent - p95 percent below which to size down
      upAbovePercent - p95 percent above which to size up
      Returns:
      this builder
    • headroomFactor

      public EstateThresholds.Builder headroomFactor(double factor)
      Sets the headroom factor.
      Parameters:
      factor - the factor (at least 1.0)
      Returns:
      this builder
    • minUtilizationSamples

      public EstateThresholds.Builder minUtilizationSamples(int samples)
      Sets the fewest samples a utilisation rule acts on.
      Parameters:
      samples - the count
      Returns:
      this builder
    • bandwidthTiersMbps

      public EstateThresholds.Builder bandwidthTiersMbps(List<Integer> tiersMbps)
      Sets the bandwidth tiers.
      Parameters:
      tiersMbps - the tiers in Mbps
      Returns:
      this builder
    • minAgeForTermDays

      public EstateThresholds.Builder minAgeForTermDays(int days)
      Sets the minimum age before a term is recommended.
      Parameters:
      days - the age in days
      Returns:
      this builder
    • candidateTerms

      public EstateThresholds.Builder candidateTerms(List<Term> candidateTerms)
      Sets the terms to price.
      Parameters:
      candidateTerms - the terms
      Returns:
      this builder
    • consolidateMinConnections

      public EstateThresholds.Builder consolidateMinConnections(int count)
      Sets the fewest connections that suggest a Cloud Router.
      Parameters:
      count - the count
      Returns:
      this builder
    • portCapacity

      public EstateThresholds.Builder portCapacity(double warnPercent, double criticalPercent)
      Sets the port capacity thresholds.
      Parameters:
      warnPercent - the warning percent
      criticalPercent - the critical percent
      Returns:
      this builder
    • routerLimitWarnPercent

      public EstateThresholds.Builder routerLimitWarnPercent(double percent)
      Sets the router limit warning percent.
      Parameters:
      percent - the percent
      Returns:
      this builder
    • routerPackageConnectionLimits

      public EstateThresholds.Builder routerPackageConnectionLimits(Map<String,Integer> limits)
      Supplies router package connection limits (for example from your contract or the Equinix documentation).
      Parameters:
      limits - package code to limit
      Returns:
      this builder
    • stuckAfterDays

      public EstateThresholds.Builder stuckAfterDays(int days)
      Sets the age after which a pending or failed state is stuck.
      Parameters:
      days - the age in days
      Returns:
      this builder
    • priceRanges

      public EstateThresholds.Builder priceRanges(double referencePercent, double estimatePercent)
      Sets the ± price ranges.
      Parameters:
      referencePercent - for reference prices
      estimatePercent - for estimates
      Returns:
      this builder
    • build

      public EstateThresholds build()
      Builds the thresholds.
      Returns:
      the thresholds