improve long entry calculation

This commit is contained in:
2018-07-23 01:26:42 -07:00
parent a795e7552f
commit 648b14eda9
2 changed files with 43 additions and 10 deletions

View File

@ -59,6 +59,14 @@ public class EsperProcessor implements TickProcessor {
// addLogStatement("LogStream");
addLogStreamHandler();
// respond to long entry events
addStatement("select * from LongEntryDistinct",
(newData, oldData) -> {
log.debug("Long entry triggered: {} at {}",
newData[0].get("current"),
newData[0].get("time"));
});
}
/**