自动补测、推送审计/退避重试、监控指标与监控页面

This commit is contained in:
DeepFal committed 2026-10-19 13:29:30 +08:00
1 parent 7445dcc51a
commit 24afb9e1dc
9 files changed
+831 -23

No files matched your search

+2 -2
View File
@@ -59,14 +59,14 @@ def main():
fields = build_fields(load_profile(args.profile))
filter_str = "streams:" + args.stream
behavior.RANGE_OVERRIDE = {"from": utc_iso(from_dt), "to": utc_iso(to_dt)}
behavior.set_range(utc_iso(from_dt), utc_iso(to_dt))
store = watch.Store(args.db)
analyzer = behavior.BehaviorAnalyzer(client, store, fields, filter_str,
root=ROOT, notifier=None)
try:
items = analyzer.analyze()
finally:
behavior.RANGE_OVERRIDE = None
behavior.clear_range()
flagged = [item for item in items if item.get("verdict") == "建议封禁"]
for item in items: