Expand description
Quotas and rate limiting for Relay.
Structs§
- Cached
Rate Limits - A thread-safe cache of rate limits with automatic expiration handling.
- Global
Rate Limiter - A rate limiter for global rate limits.
- Item
Scoping - Data categorization and scoping information for a single item.
- Owned
Redis Quota - Owned version of
RedisQuota
. - Quota
- Configuration for a data ingestion quota.
- Rate
Limit - An active rate limit that restricts data ingestion.
- Rate
Limits - A collection of scoped rate limits.
- Rate
Limits Into Iter - An iterator that consumes a
RateLimits
collection. - Rate
Limits Iter - An iterator over rate limit references.
- Reason
Code - A machine-readable reason code for rate limits.
- Redis
Quota - Reference to information required for tracking quotas in Redis.
- Redis
Rate Limiter - A service that executes quotas and checks for rate limits in a shared cache.
- Retry
After - A monotonic expiration marker for rate limits.
- Scoping
- Data scoping information for rate limiting and quota enforcement.
Enums§
- Category
Unit - The unit in which a data category is measured.
- Data
Category - Classifies the type of data that is being ingested.
- Invalid
Retry After - Error that occurs when parsing a
RetryAfter
from a string fails. - Metric
Namespace Scoping - Describes the metric namespace scoping of an item.
- Quota
Scope - The scope at which a quota is applied.
- Rate
Limit Scope - The scope that a rate limit applies to.
- Rate
Limiting Error - An error returned by
RedisRateLimiter
.
Traits§
- Global
Limiter - A trait that exposes methods to check global rate limits.
Type Aliases§
- Data
Categories - An efficient container for data categories that avoids allocations.