QuotaOverridesStore¶
- class gafaelfawr.storage.quota.QuotaOverridesStore(storage, slack_client, logger)¶
Bases:
object
Stores and retrieves quota overrides in Redis.
- Parameters:
storage (
PydanticRedisStorage
[QuotaConfig
]) – Underlying storage for quota overrides.slack_client (
SlackWebhookClient
|None
) – If provided, Slack webhook client to report deserialization errors of Redis data.logger (
BoundLogger
) – Logger for diagnostics.
Methods Summary
delete
()Delete any stored quota overrides.
get
()Retrieve quota overrides from Redis, if any.
store
(overrides)Store quota overrides in Redis.
Methods Documentation
- async delete()¶
Delete any stored quota overrides.
- async get()¶
Retrieve quota overrides from Redis, if any.
- Returns:
Quota overrides if any are set, or
None
if there are none.- Return type:
QuotaConfig or None
- async store(overrides)¶
Store quota overrides in Redis.
- Parameters:
overrides (
QuotaConfig
) – Overrides to store, replacing any existing overrides.- Return type: