From 02c97f50ddbe93798a63227a602e102df6c55d1c Mon Sep 17 00:00:00 2001 From: raja <1647193241@qq.com> Date: Fri, 10 Jan 2025 10:07:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=A7=84=E5=88=99=E5=AE=A1=E8=AE=A1=20?= =?UTF-8?q?-=20=E4=BA=8B=E4=BB=B6=E5=AE=9E=E6=97=B6=E7=94=9F=E6=88=90?= =?UTF-8?q?=E9=A3=8E=E9=99=A9=20--story=3D120928201?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 【修复】 1. 修复审计事件topic正则 --- src/backend/services/web/analyze/constants.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/backend/services/web/analyze/constants.py b/src/backend/services/web/analyze/constants.py index b723c12e..133c497e 100644 --- a/src/backend/services/web/analyze/constants.py +++ b/src/backend/services/web/analyze/constants.py @@ -42,7 +42,9 @@ DEFAULT_HDFS_STORAGE_CLUSTER_KEY = "default_hdfs_storage_cluster" AUDIT_EVENT_TABLE_PREFIX = "audit_event" AUDIT_EVENT_TABLE_FORMAT = f"{AUDIT_EVENT_TABLE_PREFIX}_%s_%s" -AUDIT_EVENT_QUEUE_TOPIC_PATTERN = f"^queue_(?'bk_biz_id'.*)_{AUDIT_EVENT_TABLE_PREFIX}_(?'namespace'.*)_(?'time_ns'.*)$" +AUDIT_EVENT_QUEUE_TOPIC_PATTERN = ( + f"^queue_(?P.*)_{AUDIT_EVENT_TABLE_PREFIX}_(?P.*)_(?P.*)$" +) class ControlTypeChoices(TextChoices):