Class TenantCredits

java.lang.Object
ai.vectros.types.TenantCredits

public final class TenantCredits extends Object
  • Method Details

    • getUsed

      public Optional<Long> getUsed()
      Returns:
      Credits consumed by this environment this period (rounded down)
    • getUsedMilli

      public Optional<Long> getUsedMilli()
      Returns:
      used in milli-credit precision (exact, 1 credit = 1000 milli-credits). Use this for exact accounting — tenants.live.credits.used + tenants.test.credits.used can differ from the account-level credits.used by up to 1 credit due to independent truncation, but live.usedMilli + test.usedMilli == credits.usedMilli always.
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object
    • builder

      public static TenantCredits.Builder builder()