proxywhirl.rate_limiting.models¶
Data models for rate limiting.
Classes¶
Rate limit configuration. |
|
Rate limit event for logging. |
Module Contents¶
- class proxywhirl.rate_limiting.models.RateLimit(/, **data)[source]¶
Bases:
pydantic.BaseModelRate limit configuration.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)
- class proxywhirl.rate_limiting.models.RateLimitEvent(/, **data)[source]¶
Bases:
pydantic.BaseModelRate limit event for logging.
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
- Parameters:
data (Any)