Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Created question in FIWARE Q/A platform on 11-01-2016 at 07:01
Please, ANSWER this question AT https://stackoverflow.com/questions/34715787/how-to-detect-sudden-increase-or-decrease-in-value-for-an-event-using-proton-run
Question:
How to detect sudden increase or decrease in value for an event using proton run time?
Description:
I am developing an application using proton CEP and Orion Context Broker. I have sensor that updates the temperature and CEP gets the temperature update as an event. I want the CEP to produce an alert if there is a difference of 10 in two consecutive updates.
For example:
Last update from sensor is 35. If the next update is less than 26 or greater than 44 I need CEP to produce an alert.
How can I write a rule to achieve this?
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Resolution | Done [ 10000 ] | |
Status | In Progress [ 3 ] | Closed [ 6 ] |
HD-Enabler | CEP [ 10869 ] | |
HD-Chapter | Data [ 10838 ] |
Assignee | Backlog Manager [ backlogmanager ] |
Fix Version/s | 2021 [ 12600 ] |
Transition | Time In Source Status | Execution Times | Last Executer | Last Execution Date | |||||
---|---|---|---|---|---|---|---|---|---|
|
2h 54m | 1 | Backlog Manager | 22/May/17 6:10 PM | |||||
|
3h | 1 | Backlog Manager | 22/May/17 9:10 PM |
2017-05-22 15:17|CREATED monitor | # answers= 1, accepted answer= True