Commit 7bdd0f97 authored by 赵威's avatar 赵威

add time

parent 04646d86
...@@ -43,13 +43,14 @@ object Redis { ...@@ -43,13 +43,14 @@ object Redis {
client.rpush(key, id) client.rpush(key, id)
} }
client.expire(key, 60 * 60 * 24 * 15) client.expire(key, 60 * 60 * 24 * 15)
if (deviceId == "64695DE0-B926-4188-9C62-D987DC20BEDF") { val total = System.currentTimeMillis - timeBegin
if (total > 1000) {
DingTalk.send( DingTalk.send(
Map( Map(
"method" -> "Redis.save", "method" -> "Redis.save",
"deviceId" -> deviceId, "deviceId" -> deviceId,
"contentType" -> contentType, "contentType" -> contentType,
"streamTotalSeconds" -> s"${(System.currentTimeMillis - timeBegin)}ms" "streamTotalSeconds" -> s"${total}ms"
) )
) )
} }
......
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