From d17987fe984a8b4e10688cd16547efd4cb217601 Mon Sep 17 00:00:00 2001 From: yunchao Date: Thu, 14 Nov 2024 15:33:10 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B6=85=E5=A4=A7=E8=AE=A2=E9=98=85?= =?UTF-8?q?=E6=96=B9=E6=A1=88=20(closed=20#2429)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/backend/components/collections/agent_new/base.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/apps/backend/components/collections/agent_new/base.py b/apps/backend/components/collections/agent_new/base.py index 30699f4ba..3a1da6ee4 100644 --- a/apps/backend/components/collections/agent_new/base.py +++ b/apps/backend/components/collections/agent_new/base.py @@ -52,18 +52,22 @@ class AgentCommonData(CommonData): class RedisAgentCommonData(RedisCommonData): # 默认接入点 + @property def default_ap(self) -> models.AccessPoint: return self._get_attr_from_redis("default_ap") # 主机ID - 接入点 映射关系 + @property def host_id__ap_map(self) -> Dict[int, models.AccessPoint]: return self._get_attr_from_redis("host_id__ap_map") # AgentStep 适配器 + @property def agent_step_adapter(self) -> AgentStepAdapter: return self._get_attr_from_redis("agent_step_adapter") # 注入AP_ID + @property def injected_ap_id(self) -> int: return self._get_attr_from_redis("injected_ap_id")