Add classifier hits and alerts pipeline

Add NATS subjects + ClickHouse tables for classifier hits/alerts, evaluate sweep/spike rules in compute, expose API/WS endpoints, and cover storage helpers with tests.
This commit is contained in:
dirtydishes 2025-12-29 15:59:37 -05:00
parent ad58c62c37
commit 58485b4d97
11 changed files with 861 additions and 8 deletions

View file

@ -48,3 +48,7 @@ EMIT_INTERVAL_MS=1000
# Compute consumer behavior
COMPUTE_DELIVER_POLICY=new
COMPUTE_CONSUMER_RESET=false
CLASSIFIER_SWEEP_MIN_PREMIUM=50000
CLASSIFIER_SWEEP_MIN_COUNT=3
CLASSIFIER_SPIKE_MIN_PREMIUM=25000
CLASSIFIER_SPIKE_MIN_SIZE=500