Thresholds

Thresholds(self, warn_at=None, stop_at=None, notify_at=None)

Definition of threshold values.

Parameters

warn_at : int | float | bool | None = None

The threshold for the ‘warn’ level. This can be an absolute count or a fraction of the total. Using True will set this threshold to 1.

stop_at : int | float | bool | None = None

The threshold for the ‘stop’ level. This can be an absolute count or a fraction of the total. Using True will set this threshold to 1.

notify_at : int | float | bool | None = None

The threshold for the ‘notify’ level. This can be an absolute count or a fraction of the total. Using True will set this threshold to 1.

Returns

: Thresholds

A Thresholds object. This can be used when using the Validate class (to set thresholds globally) or when defining validation steps through Validate’s methods (so that threshold values are scoped to individual validation steps, overriding any global thresholds).