

- If the period is set to 1 and day is selected:
- For example, if the policy was saved at 12:00:00, this policy will be valid between 00:00:00 and 23:59:59 within the current day.
- At 00:00:00 the next day, a new window starts and the counter resets.

| Field | Description |
|---|---|
| Permitted Message Count | The number of requests allowed. We set this to 100 in this scenario. |
| Interval Time Amount | The period determined according to the selected time unit. We set this to 1 in this scenario. |
| Interval Time Unit | Time unit. We set this to day in this scenario. |
| Target-Specific Quota Rules | Special quota limits are defined for each target. |
| Interval Window Type | Method used to apply the time interval. 1-day time periods in Fixed type. |
| Cache Connection Timeout (Second) | Specify the connection timeout value for the connection between the policy and cache. |
| Action for Cache Connection Error | If there is a connection problem with cache, it is determined whether to return an error (Fail is selected) or continue without applying the request limit (Continue is selected). |

Target-Specific Quota Rules (Target-Specific Quota Rules)
Thanks to this feature, you can define special quota limitations for specific users or targets. We add API Based Quota as a policy.
- Using Target-Specific Quota Rules (Target-Specific Quota Rules), special quota limits can be determined based on users (based on header, body, or another field). While limiting incoming requests to 100 requests for 1 day using the Fixed Window (Fixed Window) method in the general policy, a limit of maximum 5 requests per hour can be defined for the user1 user at the same time.
- In the Fixed Window method, if the period is set to 1 and day is selected:
- For example, if the policy was saved at 12:00:00, this policy will be valid between 00:00:00 and 23:59:59 within the current day, and 100 requests can be made as a general rule during this period.
- At 00:00:00 the next day, a new window starts and the counter resets.
- For the user1 user we defined with Target-Specific Quota Rules, an hourly limit has been determined. If an hour period starts at 00:00:00, this covers the period between 00:00:00 and 00:59:59, and the user1 user can make a maximum of 5 requests in this time range. In the next hour period (01:00:00), the counter resets.



