Expand description
Quotas and rate limiting for Relay.
Structs§
- Cached
Rate Limits - A thread-safe cache of rate limits with automatic expiration handling.
- Data
Categories - An efficient container for data categories that avoids allocations.
- Data
Category Iterator - An iterator over a
DataCategoriescontainer. - Dimension
Map - A map of Dimension -> String
- Dimension
MapValue - The value stored in the DimensionMap.
- GroupBy
- The dimensions that a quota can key on–this is for things like monitors, that require even more fine-grained rate-limiting.
- Item
Scoping - Data categorization and scoping information for a single item.
- Owned
Redis Quota - Owned version of
RedisQuota. - Propagatable
Rate Limits - A wrapper for RateLimits that can only be constructed by
RateLimits::propagatable, ensuring that we do not include any dimensioned rate limits in it. - Quota
- Configuration for a data ingestion quota.
- Quota
Cache Key - A key which uniquely identifies a quota.
- Rate
Limit - An active rate limit that restricts data ingestion.
- Rate
Limiting Error - An error returned by
RedisRateLimiter. - Rate
Limits - A collection of scoped rate limits.
- Rate
Limits Into Iter - An iterator that consumes a
RateLimitscollection. - 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.
- Dimension
- The kinds of dimensions that can be applied to a given quota.
- Invalid
Retry After - Error that occurs when parsing a
RetryAfterfrom 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.