...
Code Block | ||
---|---|---|
| ||
CREATE TABLE 'THROTTLED_CALLS'( 'THROTTLE_ID' bigint PRIMARY KEY, --id of the throttle rule 'NORMALIZED_CALL' varchar(256), --normalized api URL, numbers such as {id} replaced with # 'MAX_LOCKS' int NOT NULL, --maximum number of locks per time block 'LOCK_TIMEOUT_SECONDS' int NOT NULL, --duration of each time block, in at the beginning of each time block, number of held locks reset 'THROTTLE_EXPIRATION' bigint ,seconds 'THROTTLE_EXPIRATION' bigint DEFAULT NULL, --optional expiration of the rule in unix timestamp UNIQUE ('NORMALIZED_CALL') ) |
...