Commit fe4d4b69 by trace

show correct monitor number

parent 59fefba3
...@@ -73,6 +73,7 @@ let ourApps = {} ...@@ -73,6 +73,7 @@ let ourApps = {}
let hitDaichao = isTest() ? 1 : 0 let hitDaichao = isTest() ? 1 : 0
let hitOurs = isTest() ? 1 : 0 let hitOurs = isTest() ? 1 : 0
let flatMonitorNames = []
// 返回需要监控的自有 app // 返回需要监控的自有 app
let isTimeToAppendOurApp = (apps) => { let isTimeToAppendOurApp = (apps) => {
...@@ -204,7 +205,8 @@ async function startMonitor() { ...@@ -204,7 +205,8 @@ async function startMonitor() {
} }
} }
dingDing(log(`补全后监控数量: ${allN.length}, 补全: ${logLess}`)) dingDing(log(`补全后监控数量: ${allN.length}, 补全: ${logLess}`))
return isTest() ? allN.slice(0, 2) : allN flatMonitorNames = isTest() ? allN.slice(0, 2) : allN
return flatMonitorNames
}) })
.then(allN => monitorIfOnline(allN)) .then(allN => monitorIfOnline(allN))
.then(genMail) .then(genMail)
...@@ -745,7 +747,7 @@ function genMail() { ...@@ -745,7 +747,7 @@ function genMail() {
emailContent += generateDailyOnlineReport() emailContent += generateDailyOnlineReport()
emailContent += nowGenerate emailContent += nowGenerate
emailContent += `<div>监控总数量: ${(allNames(monitorNames) || []).length}</div>` emailContent += `<div>监控总数量: ${(flatMonitorNames || []).length}</div>`
emailContent += lastGenerate emailContent += lastGenerate
log(`生成邮件内容: \n${emailContent}`) log(`生成邮件内容: \n${emailContent}`)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment