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")