Clarification on "the quota will be calculated over the course of 24 hours"

Not applicable

While I'm reading the document on Quota Policy, I read this line "the quota will be calculated over the course of 24 hours" many times.

So does it mean:

* each 24 hours slice since the StartTime?

For example: if an api request timestamp is 2017-7-20 10:00:00 then quota policy will calculate the quota used from 2017-7-19 12:00:00 to 2017-7-20 12:00:00.

Another example: if an api request timestamp is 2017-7-20 15:00:00 then quota policy will calculate the quota used from 2017-7-20 12:00:00 to 2017-7-21 12:00:00.

or

* the past 24 hours since the request timestamp?

For example: if an api request timestamp is 2017-7-20 10:00:00 then quota policy will calculate the quota used from 2017-7-19 10:00:00 to 2017-7-20 10:00:00.

For example: if an api request timestamp is 2017-7-20 15:00:00 then quota policy will calculate the quota used from 2017-7-19 15:00:00 to 2017-7-20 15:00:00.

Hope it makes sense. Thank you very much.

Solved Solved
0 2 115
1 ACCEPTED SOLUTION

Not applicable

This will depend on how you configure your quota policy, you have time unit options (minute, hour, day, week, month) and types. The type (default, calendar reset, flexi reset, rolling window) will determine when the counter is reset.

For example, if you pick a time unit of day and use a type of calendar reset - the counter will reset 24 hours after the start time.

The 'Quota policy types' section on the docs page has more detail around each type and how they work with each time unit: http://docs.apigee.com/api-services/reference/quota-policy

View solution in original post

2 REPLIES 2

Not applicable

This will depend on how you configure your quota policy, you have time unit options (minute, hour, day, week, month) and types. The type (default, calendar reset, flexi reset, rolling window) will determine when the counter is reset.

For example, if you pick a time unit of day and use a type of calendar reset - the counter will reset 24 hours after the start time.

The 'Quota policy types' section on the docs page has more detail around each type and how they work with each time unit: http://docs.apigee.com/api-services/reference/quota-policy

Excellent, thank you!