Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
AppMonitorSubscriber
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nongyingchen
AppMonitorSubscriber
Commits
fe4d4b69
Commit
fe4d4b69
authored
Sep 17, 2019
by
trace
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
show correct monitor number
parent
59fefba3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
play.js
+4
-2
No files found.
play.js
View file @
fe4d4b69
...
@@ -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
}
`
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment