Built-in conditions
Condition classes implement specific logic for query check conditions.
Example usage:
Common arguments
name (str) - name, used to distinguish multiple checks of the same type (default: name of condition class)
notice_duration (int) - how long query should run to produce result with level
NOTICE
if it matches other condition, in secondswarning_duration (int) - how long query should run to produce result with level
WARNING
if it matches conditions, in secondskill_duration (int) - how long query should run to produce result with level
KILL
if it matches other condition, in secondsquery_filter (QueryFilter) - narrow down scope of condition using filter
enable_kill (bool) - should be set to
True
for queries matching condition and exceedingkill_duration
to be actually killedenable_kill_query_filter (QueryFilter) - narrow down scope of query killer using filter
Most condition classes also have specific arguments, which are described on corresponding sub-pages.
Last updated