Name | Description | Schema | Default | Example |
---|---|---|---|---|
policyId optional |
Id of policy |
string | null |
0c6439fd-9b16-3c2e-be6e-1086e0b9aa93 |
policyName required |
Name of policy |
string | null |
Policy1 |
displayName optional |
Display name of the policy |
string | null |
|
description optional |
Description of the policy |
string | null |
|
isDeployed optional |
Indicates whether the policy is deployed successfully or not. |
boolean | null |
|
siddhiQuery optional |
Siddhi query which represents the custom throttling policy |
string | null |
FROM RequestStream\nSELECT userId, ( userId == 'admin@carbon.super' ) AS isEligible , str:concat('admin@carbon.super','') as throttleKey\nINSERT INTO EligibilityStream; \n\nFROM EligibilityStream[isEligible==true]#throttler:timeBatch(1 min) \nSELECT throttleKey, (count(userId) >= 10) as isThrottled, expiryTimeStamp group by throttleKey \nINSERT ALL EVENTS into ResultStream; |
keyTemplate optional |
The specific combination of attributes that are checked in the policy. |
string | null |
$userId |