app.model.abuse_limit_counter module¶
- class app.model.abuse_limit_counter.AbuseLimitCounter(*, id=<factory>, created_at, updated_at, scopeType, scopeValue, windowName, windowStart, counter)[source]¶
Bases:
SQLModelStores per-scope counters used by abuse-prevention and rate-limiting rules.
The tuple (scopeType, scopeValue, windowName, windowStart) is unique and represents one logical bucket.
- Parameters:
id (str)
created_at (datetime)
updated_at (datetime)
scopeType (str)
scopeValue (str)
windowName (str)
windowStart (datetime)
counter (int)
- model_config: ClassVar[ConfigDict] = {'from_attributes': True, 'read_from_attributes': True, 'read_with_orm_mode': True, 'registry': PydanticUndefined, 'table': True}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].