Commit 39714577 authored by 赵威's avatar 赵威

update diary service type

parent 10a00c28
...@@ -45,9 +45,8 @@ object Main extends LazyLogging { ...@@ -45,9 +45,8 @@ object Main extends LazyLogging {
"172.16.44.25:9092,172.16.44.31:9092,172.16.44.45:9092" "172.16.44.25:9092,172.16.44.31:9092,172.16.44.45:9092"
) )
// TODO remove test
val kafkaConsumer = new FlinkKafkaConsumer[UserInfo]( val kafkaConsumer = new FlinkKafkaConsumer[UserInfo](
"gm-portrait-update-device-test", "gm-portrait-update-device",
new UserInfoDeserializationSchema, new UserInfoDeserializationSchema,
kafkaConsumerProperties kafkaConsumerProperties
) )
...@@ -111,10 +110,11 @@ object Main extends LazyLogging { ...@@ -111,10 +110,11 @@ object Main extends LazyLogging {
logger.info(s"${user.eventCn} ${deviceId}") logger.info(s"${user.eventCn} ${deviceId}")
val cost = streamTimeBegin - user.sendTimestamp val cost = streamTimeBegin - user.sendTimestamp
if (cost > 1000) { if (cost > 1500 && cost < 100000) {
deviceId == "64695DE0-B926-4188-9C62-D987DC20BEDF" deviceId == "64695DE0-B926-4188-9C62-D987DC20BEDF"
DingTalk.send( DingTalk.send(
Map( Map(
"method" -> "Main.main",
"deviceId" -> deviceId, "deviceId" -> deviceId,
"eventCn" -> user.eventCn, "eventCn" -> user.eventCn,
"action" -> user.action, "action" -> user.action,
......
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