diff options
Diffstat (limited to 'python/knot_resolver/datamodel/defer_schema.py')
-rw-r--r-- | python/knot_resolver/datamodel/defer_schema.py | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/python/knot_resolver/datamodel/defer_schema.py b/python/knot_resolver/datamodel/defer_schema.py new file mode 100644 index 00000000..38301e55 --- /dev/null +++ b/python/knot_resolver/datamodel/defer_schema.py @@ -0,0 +1,15 @@ +from knot_resolver.utils.modeling import ConfigSchema +from knot_resolver.datamodel.types import TimeUnit + + +class DeferSchema(ConfigSchema): + """ + Configuration of request prioritization (defer). + + --- + enabled: Use request prioritization. + log_period: Minimal time between two log messages, or '0s' to disable. + """ + + enabled: bool = False + log_period: TimeUnit = TimeUnit("0s") |