|
@@ -353,6 +353,7 @@ class AlarmPlan:
|
|
|
|
|
|
if self.event_attr_.enter_ts_ == -1:
|
|
|
self.event_attr_.enter_ts_ = timestamp
|
|
|
+ LOGINFO(f"detected target enter, plan_uuid: {self.plan_uuid_}")
|
|
|
else:
|
|
|
self.event_attr_.leave_ts_ = timestamp
|
|
|
|
|
@@ -370,6 +371,7 @@ class AlarmPlan:
|
|
|
self.event_attr_.reset()
|
|
|
LOGINFO(f"less than threshold_time, alarm_plan: {self.plan_uuid_}, event_type: {self.event_type_}")
|
|
|
return
|
|
|
+ LOGINFO(f"detected target leave, plan_uuid: {self.plan_uuid_}")
|
|
|
|
|
|
# 构造事件
|
|
|
# 入库
|
|
@@ -431,6 +433,7 @@ class AlarmPlan:
|
|
|
|
|
|
if self.event_attr_.enter_ts_ == -1:
|
|
|
self.event_attr_.enter_ts_ = timestamp
|
|
|
+ LOGINFO(f"detected target enter, plan_uuid: {self.plan_uuid_}")
|
|
|
else:
|
|
|
self.event_attr_.leave_ts_ = timestamp
|
|
|
|
|
@@ -448,6 +451,7 @@ class AlarmPlan:
|
|
|
self.event_attr_.reset()
|
|
|
LOGINFO(f"less than threshold_time, alarm_plan: {self.plan_uuid_}, event_type: {self.event_type_}")
|
|
|
return
|
|
|
+ LOGINFO(f"detected target leave, plan_uuid: {self.plan_uuid_}")
|
|
|
|
|
|
# 构造事件
|
|
|
# 入库
|
|
@@ -509,6 +513,7 @@ class AlarmPlan:
|
|
|
|
|
|
if self.event_attr_.enter_ts_ == -1:
|
|
|
self.event_attr_.enter_ts_ = timestamp
|
|
|
+ LOGINFO(f"detected target enter, plan_uuid: {self.plan_uuid_}")
|
|
|
else:
|
|
|
self.event_attr_.leave_ts_ = timestamp
|
|
|
|
|
@@ -526,6 +531,7 @@ class AlarmPlan:
|
|
|
self.event_attr_.reset()
|
|
|
LOGINFO(f"less than threshold_time, alarm_plan: {self.plan_uuid_}, event_type: {self.event_type_}")
|
|
|
return
|
|
|
+ LOGINFO(f"detected target leave, plan_uuid: {self.plan_uuid_}")
|
|
|
|
|
|
# 构造事件
|
|
|
# 入库
|
|
@@ -768,6 +774,7 @@ class AlarmPlan:
|
|
|
timestamp = get_utc_time_s()
|
|
|
if self.event_attr_.leave_ts_ == -1:
|
|
|
self.event_attr_.leave_ts_ = timestamp
|
|
|
+ LOGINFO(f"detected target leave, plan_uuid: {self.plan_uuid_}")
|
|
|
else:
|
|
|
self.event_attr_.enter_ts_ = timestamp
|
|
|
|
|
@@ -785,6 +792,7 @@ class AlarmPlan:
|
|
|
self.event_attr_.reset()
|
|
|
LOGINFO(f"less than threshold_time, alarm_plan: {self.plan_uuid_}, event_type: {self.event_type_}")
|
|
|
return
|
|
|
+ LOGINFO(f"detected target enter, plan_uuid: {self.plan_uuid_}")
|
|
|
|
|
|
# 构造事件
|
|
|
# 入库
|