This document provides information about special quota parameters that allow you to make additional limits on various actions. These parameters are called Limit Quotas.
Please Note: You MUST have the Service Account credentials to apply this quota.
All Limit Quotas are set in one way - via API request. To apply Quota Limit make an HTTP request PUT https://api.thatapp.io/v2/quotas/{LimitQuota}/{context_expression} using the correct credentials and the following body:
{
"data": {
"quotaType": "{LimitQuota}",
"context": "{TENANT_ID}.ANY",
"limit": 3
}
}
The type of limit to be set. The full list of Limit Quotas can be found down the page.
Please Note: You MUST use the same Limit Quota in the API
PUTURL as well.
The context expression depends on the Limit Record you want to apply.
"{TENANT_ID}.{CONTRACT_ID}.{WORKSPACE_ID}" if you want to set the quota for a workspace."{TENANT_ID}.{CONTRACT_ID}" if you want to set the quota for a contract."{TENANT_ID}" if you want to set the quota for a tenant.You can use context expression to set broader quota limits.
"{TENANT_ID}.{CONTRACT_ID}.ANY" if you want to apply the quota to all workspaces in the contract."{TENANT_ID}.ANY" if you want to apply the quota for all contracts in the tenant."ANY" to apply your quota for all tenants in the installation.Please Note: You MUST use the same context in the API
PUTURL as well.
The limit can have three values:
integer like 3 or 42 to limit number of flows.-1 if you want to set unlimited quota.0 to disable the quota.We can categorize Limit Quotas by type of limit:
per_contract_workspace_count_fullLimits the number of workspaces with type Full.
per_contract_workspace_count_limitedLimits the number of workspaces with type Limited.
per_contract_cpu_usage_monthly_limitLimits amount of available CPU usage for certain Contract in month.
per_workspace_cpu_usage_monthly_limitLimits amount of available CPU usage for certain Workspace in month.
per_contract_mem_usage_monthly_limitLimits amount of available RAM Memory usage for certain contract in month.
per_workspace_mem_usage_monthly_limitLimits amount of available RAM Memory usage for certain workspace in month.
Please Note: The numerical value of the memory quota limit must be expressed in Mb*s. Details.
per_contract_request_webhooks_per_minute_limitLimits amount of available Requests to Webhooks for certain contract per minute.
per_workspace_request_webhooks_per_minute_limitLimits amount of available Requests to Webhooks for certain workspace per minute.
per_workspace_flow_count_limitLimits the number of Flows for certain Workspace.
per_contract_flow_count_limitLimits the number of Flows for certain Contract.
per_tenant_flow_count_limitLimits the number of Flows for certain Tenant.
Please Note: Before you can use this quota you MUST sync your existing flow counts with the quotatxns DB tables. Use
POST https://api.thatapp.io/sidedoor/quotatxns/sync/flowendpoint using the Service Account credentials.
per_contract_user_count_limitLimits the number of users that can be present in a contract.
per_contract_container_count_limitLimits that control the number of steps, including mapper, in active flows for both Ordinary and Real-Time Flows in the running and sleeping states per single contract. If the value of this parameter is exceeded, starting new Flows will not be available.
You can see the total number of containers occupied by one Flow, for example, in the UI by going to Flow Queues. In the example below there are 6 containers:
Please Note: Before you can use this quota you MUST sync your existing containers count with the quotatxns DB tables. Use
POST https://api.thatapp.io/sidedoor/quotatxns/sync/containerendpoint using the Service Account credentials.