RateLimitTrigger#

struct RateLimitTrigger#

Rate-limit trigger.

Public Members

std::string_view name#

Configuration name.

Origin origin = {}#

Origin.

RateLimitType type = {}#

Rate-limit type.

std::span<User const> users#

Sorted list of users being affected (empty list means: all)

std::span<Account const> accounts#

Sorted list of accounts being affected (empty list means: all)

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.