Flink CEP questions

Posted by Basanth Gowda on
URL: http://deprecated-apache-flink-user-mailing-list-archive.369.s1.nabble.com/Flink-CEP-questions-tp14971.html

All,
New to Flink and more so with Flink CEP.

I want to write a sample program that does the following :

Lets suppose data cpu usage of a given server.

  1. Want to Alert when CPU usage is above or below certain value
  2. Want to Alert when CPU usage falls in a range
  3. Want to Alert when the above condition matches n times in x interval (could be seconds, minutes, hours)
  4. Want to Alert when the above condition happens continuously for x interval (could be seconds, minutes or hours) 
How would we achieve 3, 4 in the list above ? Any examples that I refer to ?


thank you,
Basanth