public interface QuotaSetService extends RestService
Modifier and Type | Method and Description |
---|---|
QuotaSet |
get(String tenantId)
Gets the QuotaSet for the given tenant ID
|
QuotaSet |
get(String tenantId,
String userId)
Gets the QuotaSet for the given tenant and user ID
|
SimpleTenantUsage |
getTenantUsage(String tenantId)
Gets the usage information for the specified tenant (os-simple-tenant-usage)
|
SimpleTenantUsage |
getTenantUsage(String tenantId,
String startTime,
String endTime)
Gets the usage information for the specified tenant in a period of time (os-simple-tenant-usage)
|
Limits |
limits()
Accounts may be pre-configured with a set of thresholds (or limits) to manage capacity and prevent system abuse.
|
List<? extends SimpleTenantUsage> |
listTenantUsages()
Gets tenant usage information for all tenants (os-simple-tenant-usage)
|
List<? extends SimpleTenantUsage> |
listTenantUsages(String startTime,
String endTime)
Gets tenant usage information for all tenants in a period of time (os-simple-tenant-usage)
|
QuotaSet |
updateForClass(String classId,
QuotaSetUpdate qs)
Updates quota for a specified class
|
QuotaSet |
updateForTenant(String tenantId,
QuotaSetUpdate qs)
Updates quota for a specified tenant
|
QuotaSet get(String tenantId)
tenantId
- the tenant idQuotaSet get(String tenantId, String userId)
tenantId
- the identifier for the tenantuserId
- the identifier of the userQuotaSet updateForClass(String classId, QuotaSetUpdate qs)
classId
- the class identifierqs
- the quota set - see Builders.quotaSet()
QuotaSet updateForTenant(String tenantId, QuotaSetUpdate qs)
tenantId
- the tenant identifierqs
- the quota set - see Builders.quotaSet()
Limits limits()
List<? extends SimpleTenantUsage> listTenantUsages()
SimpleTenantUsage getTenantUsage(String tenantId)
tenantId
- the tenant identifierList<? extends SimpleTenantUsage> listTenantUsages(String startTime, String endTime)
startTime
- eg:2015-05-05T23:59:59endTime
- SimpleTenantUsage getTenantUsage(String tenantId, String startTime, String endTime)
tenantId
- the tenant identifierstartTime
- eg:2015-05-05T23:59:59endTime
- Copyright © 2017. All rights reserved.