AlertThresholdAlgo
AlertThresholdAlgo
MANUAL
STD_DEV_AUTO_THRESHOLD
Example
# Manual threshold - user knows the acceptable drift limit
manual_alert = AlertRule(
threshold_type=AlertThresholdAlgo.MANUAL,
critical_threshold=0.1,
warning_threshold=0.05
)
# Auto threshold - let system learn from historical patterns
auto_alert = AlertRule(
threshold_type=AlertThresholdAlgo.STD_DEV_AUTO_THRESHOLD,
auto_threshold_params={
'warning_multiplier': 2.0, # 2 std devs for warning
'critical_multiplier': 3.0 # 3 std devs for critical
}
)MANUAL = 'manual'
STD_DEV_AUTO_THRESHOLD = 'standard_deviation_auto_threshold'
__str__()
Returns
Example
Last updated
Was this helpful?