java.lang.Object
com.yahoo.vespa.hosted.controller.api.integration.billing.Quota

public class Quota extends Object
Quota information transmitted to the configserver on deploy. All limits are represented with an Optional type where the empty optional means unlimited resource use.
Author:
andreer, ogronnesby
  • Method Details

    • withMaxClusterSize

      public Quota withMaxClusterSize(int clusterSize)
    • zero

      public static Quota zero()
      Construct a Quota that allows zero resource usage
    • unlimited

      public static Quota unlimited()
      Construct a Quota that allows unlimited resource usage
    • isUnlimited

      public boolean isUnlimited()
    • withBudget

      public Quota withBudget(BigDecimal budget)
    • withBudget

      public Quota withBudget(int budget)
    • withoutBudget

      public Quota withoutBudget()
    • maxClusterSize

      public OptionalInt maxClusterSize()
      Maximum number of nodes in a cluster in a Vespa deployment
    • budget

      public Optional<BigDecimal> budget()
      Maximum $/hour run-rate for the Vespa deployment
    • subtractUsage

      public Quota subtractUsage(double rate)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object