Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
streamingUserPortrait
Project
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
赵威
streamingUserPortrait
Commits
e9170a6e
Commit
e9170a6e
authored
Feb 07, 2021
by
赵威
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add description
parent
7bdd0f97
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
15 deletions
+18
-15
Main.scala
src/main/scala/com.gmei.up/Main.scala
+17
-15
Redis.scala
src/main/scala/com.gmei.up/utils/Redis.scala
+1
-0
No files found.
src/main/scala/com.gmei.up/Main.scala
View file @
e9170a6e
...
...
@@ -110,21 +110,23 @@ object Main extends LazyLogging {
// current time
logger
.
info
(
s
"${user.eventCn} ${deviceId}"
)
// if (deviceId == "64695DE0-B926-4188-9C62-D987DC20BEDF") {
// DingTalk.send(
// Map(
// "deviceId" -> deviceId,
// "eventCn" -> user.eventCn,
// "action" -> user.action,
// "cityId" -> user.cityId.toString,
// "logTime" -> user.logTime.toString,
// "projects" -> user.projects.mkString(" "),
// "diaryRead" -> diaryRead.size.toString,
// "tractateRead" -> tractateRead.size.toString,
// "answerRead" -> answerRead.size.toString
// )
// )
// }
if
(
deviceId
==
"64695DE0-B926-4188-9C62-D987DC20BEDF"
)
{
DingTalk
.
send
(
Map
(
"deviceId"
->
deviceId
,
"eventCn"
->
user
.
eventCn
,
"action"
->
user
.
action
,
"cityId"
->
user
.
cityId
.
toString
,
"logTime"
->
user
.
logTime
.
toString
,
"projects"
->
user
.
projects
.
mkString
(
" "
),
"diaryRead"
->
diaryRead
.
size
.
toString
,
"tractateRead"
->
tractateRead
.
size
.
toString
,
"answerRead"
->
answerRead
.
size
.
toString
,
"cost"
->
s
"${streamTimeBegin - user.sendTimestamp}ms"
,
"description"
->
"收到请求到开始处理的时间"
)
)
}
deviceId
}
catch
{
...
...
src/main/scala/com.gmei.up/utils/Redis.scala
View file @
e9170a6e
...
...
@@ -50,6 +50,7 @@ object Redis {
"method"
->
"Redis.save"
,
"deviceId"
->
deviceId
,
"contentType"
->
contentType
,
"description"
->
"该设备从流开始处理到存入结果的总时间"
,
"streamTotalSeconds"
->
s
"${total}ms"
)
)
...
...
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