Class TenantLimitsClient

java.lang.Object
com.dtsx.astra.sdk.AbstractApiClient
com.dtsx.astra.sdk.streaming.TenantLimitsClient

public class TenantLimitsClient extends AbstractApiClient
Client to operates on limits of one cluster.
  • Constructor Details

    • TenantLimitsClient

      public TenantLimitsClient(String token, String tenantId)
      As immutable object use builder to initiate the object.
      Parameters:
      tenantId - unique tenant identifier
      token - authenticated token
    • TenantLimitsClient

      public TenantLimitsClient(String token, ApiLocator.AstraEnvironment env, String tenantId)
      As immutable object use builder to initiate the object.
      Parameters:
      env - define target environment to be used
      token - authenticated token
      tenantId - unique tenant identifier
  • Method Details

    • limits

      public Stream<TenantLimit> limits()
      List limits for a tenants.
      Returns:
      the list of limits
    • getEndpointTenantLimits

      public String getEndpointTenantLimits()
      Endpoint to access dbs.
      Returns:
      database endpoint