MySQL 8.0.40
Source Code Documentation
_log_filter_rule Struct Reference

#include <log_builtins_filter.h>

Public Attributes

ulong id
 index may change; this will not More...
 
ulong jump
 default: 0. More...
 
log_item match
 compare to this item type/class/key/value etc More...
 
log_filter_cond cond
 how to compare: < > == regex etc More...
 
log_filter_verb verb
 what to do: drop, upvote, etc More...
 
log_item aux
 aux: item to add/prio to set/throttle rate More...
 
ulonglong throttle_window_end
 for rate-limiting: at what time will current window end? More...
 
ulong throttle_window_size
 for rate-limiting: window-size (in seconds) More...
 
ulong throttle_matches
 how many lines in this window matched? (both suppressed and not) More...
 
ulong flags
 log_filter_flags (fix storage size) More...
 
volatile int32 match_count
 how often did this rule match? More...
 
mysql_rwlock_t rule_lock
 lock an individual rule (to update state keeping) More...
 

Member Data Documentation

◆ aux

log_item _log_filter_rule::aux

aux: item to add/prio to set/throttle rate

◆ cond

log_filter_cond _log_filter_rule::cond

how to compare: < > == regex etc

◆ flags

ulong _log_filter_rule::flags

log_filter_flags (fix storage size)

◆ id

ulong _log_filter_rule::id

index may change; this will not

◆ jump

ulong _log_filter_rule::jump

default: 0.

action of an IF/ELSEIF/ELSE branch: points behind last branch of this IF-construct (we successfully matched a condition, and executed its statement, so leave this IF-construct as nothing else will apply). condition of an IF/ELSEIF: points to next ELSEIF/ELSE, so we can jump there if the condition fails.

◆ match

log_item _log_filter_rule::match

compare to this item type/class/key/value etc

◆ match_count

volatile int32 _log_filter_rule::match_count

how often did this rule match?

◆ rule_lock

mysql_rwlock_t _log_filter_rule::rule_lock

lock an individual rule (to update state keeping)

◆ throttle_matches

ulong _log_filter_rule::throttle_matches

how many lines in this window matched? (both suppressed and not)

◆ throttle_window_end

ulonglong _log_filter_rule::throttle_window_end

for rate-limiting: at what time will current window end?

◆ throttle_window_size

ulong _log_filter_rule::throttle_window_size

for rate-limiting: window-size (in seconds)

◆ verb

log_filter_verb _log_filter_rule::verb

what to do: drop, upvote, etc


The documentation for this struct was generated from the following file: