Enumerations¶
- enum rate_control.Duration(value)[source]¶
Bases:
IntEnum
Common durations that may be used to define bucket refill delays.
- Member Type:
int
Valid values are as follows:
- SECOND = <Duration.SECOND: 1>¶
- MINUTE = <Duration.MINUTE: 60>¶
- HOUR = <Duration.HOUR: 3600>¶
- DAY = <Duration.DAY: 86400>¶
- WEEK = <Duration.WEEK: 604800>¶
- enum rate_control.Priority(value)[source]¶
Bases:
IntEnum
The priority of a request.
Requests with higher priority will be processed before the others by schedulers.
- Member Type:
int
Valid values are as follows:
- HIGHEST = <Priority.HIGHEST: 0>¶
- HIGH = <Priority.HIGH: 1>¶
- NORMAL = <Priority.NORMAL: 2>¶
- LOW = <Priority.LOW: 3>¶
- LOWEST = <Priority.LOWEST: 4>¶