From 637df6395347028461245cc093d9e6fe3c2b5eb9 Mon Sep 17 00:00:00 2001 From: huang <1724659546@qq.com> Date: Fri, 7 Nov 2025 22:49:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=96=B9=E6=A1=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- design/exceeding-threshold-alarm/index.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/design/exceeding-threshold-alarm/index.md b/design/exceeding-threshold-alarm/index.md index 2012df9..ca092ff 100644 --- a/design/exceeding-threshold-alarm/index.md +++ b/design/exceeding-threshold-alarm/index.md @@ -101,7 +101,7 @@ * `ignored_until`: `timestamp` 类型,记录忽略截止时间。 * `last_notified_at`: `timestamp` 类型,记录上次发送通知的时间。 -### 阈值告警服务 (应用服务层) +### 阈值告警服务 (领域层) 1. **服务职责**: * 负责管理阈值告警 **任务配置** 的增删改查。这些任务配置包含了具体的阈值规则。 @@ -112,7 +112,7 @@ * **删除独立任务配置后归属**: 当一个普通设备的独立告警任务配置被删除时,它将自动从其所属区域主控的 `ExcludeDeviceIDs` 列表中移除,从而回归到区域统一告警策略的管理之下。 * **设备生命周期管理**: 在对设备进行修改(特别是更换区域主控)或删除时,以及在删除区域主控时,必须同步更新相关的 - `ExcludeDeviceIDs` 列表,以保证数据一致性。 + `ExcludeDeviceIDs` 列表,同时解决相关告警(当删除时), 以保证数据一致性。 * **实现**: `DeviceService` 中负责处理设备更新和删除的方法,需要调用本服务提供的“任务配置引用检查”和刷新接口。 ### 阈值告警控制器