RateLimitTrigger#
-
struct RateLimitTrigger#
Rate-limit trigger.
Public Members
-
std::string_view name#
Configuration name.
-
RateLimitType type = {}#
Rate-limit type.
-
std::chrono::nanoseconds ban_expires = {}#
System time when ban expires (zero means: ban is no longer effective)
-
std::string_view triggered_by#
Trigger activated by this user.
-
BufferCapacity buffer_capacity = {}#
Buffer capacity (indicator for how full or empty the buffer is)
-
uint32_t remaining_requests = {}#
The buffer becomes full if this many requests are sent instantly.
-
std::string_view name#