From 44caf74670eb2acc33150288c7945eacca267e8a Mon Sep 17 00:00:00 2001 From: wuqun Date: Tue, 1 Nov 2022 16:19:59 +0800 Subject: [PATCH] =?UTF-8?q?(*)=E5=91=8A=E8=AD=A6=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/alarm/alarmConfirmLog.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/api/app/lib/controllers/alarm/alarmConfirmLog.js b/api/app/lib/controllers/alarm/alarmConfirmLog.js index 6707ab8..11cfd5b 100644 --- a/api/app/lib/controllers/alarm/alarmConfirmLog.js +++ b/api/app/lib/controllers/alarm/alarmConfirmLog.js @@ -77,6 +77,7 @@ async function sendAppearToWeb(app, models, clickHouse, datas, ttype) { datas.map(ld => { let pepPId = projects.find(p => p.id == ld.projectCorrelationId).pepProjectId; sendData.push({ + projectCorrelationId: ld.projectCorrelationId, project: projects.find(p => p.id == ld.projectCorrelationId).name || pepProjects.find(pp => pp.id == pepPId).project_name,//前者为自定义项目名称 source: ld.alarmInfo.sourceName, type: ld.type, @@ -128,6 +129,7 @@ async function sendConfirmToWeb(app, models, clickHouse, logDatas, isAuto) { let pepPId = projects.find(p => p.id == ld.projectCorrelationId).pepProjectId; sendData.push({ user: userName, + projectCorrelationId: ld.projectCorrelationId, project: projects.find(p => p.id == ld.projectCorrelationId).name || pepProjects.find(pp => pp.id == pepPId).project_name,//前者为自定义项目名称 source: ld.alarmInfo.source, type: ld.alarmInfo.type, @@ -143,6 +145,6 @@ async function sendConfirmToWeb(app, models, clickHouse, logDatas, isAuto) { module.exports = { alarmConfirmLog, - sendAppearToWeb, - sendConfirmToWeb + sendAppearToWeb,//推送告警发现 + sendConfirmToWeb//推送告警确认 }; \ No newline at end of file