Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
HD-Chapter:IoT
-
HD-Enabler:Cepheus
Description
Created question in FIWARE Q/A platform on 26-05-2016 at 18:05
Please, ANSWER this question AT http://stackoverflow.com/questions/37466515/how-to-correctly-configure-cepheus-cep-to-recalculate-a-attribute-every-hour
Question:
How to correctly configure cepheus cep to recalculate a attribute every hour?
Description:
Let me explain it a bit more.
I have this cep config:
{
"host":"http://localhost:1028", //Cepheus CEP
"in":[
{
"id":"A.*",
"type":"Pevent",
"isPattern":true,
"providers":[
"http://localhost:1027" //Cepheus Broker
],
"attributes":[
,
{ "name":"endDate", "type":"date" } ]
}
],
"out":[
{
"id":"A",
"type":"Event",
"brokers":[
],
"attributes":[
]
}
],
"statements":[
"INSERT INTO Event SELECT idEvent as id, case when endDate<current_timestamp() then 1 else 0 end as expired FROM Pevent OUTPUT all"
]
}
This config when new entity is aded or modified in cepheus context broker, it notifies cepheus cep and cep calculates if the entity is expired or not and send the result to orion.This is working ok with no problem.
The problem now is that I need to recalculate the expired attribute one time per hour and i don't know if it is possible in cep because I can't make it work and don't find any info.
Thanks a lot in advance.
Activity
Field | Original Value | New Value |
---|---|---|
Component/s | FIWARE-TECH-HELP [ 10278 ] |
HD-Enabler | Unknown [ 10910 ] | |
HD-Chapter | Unknown [ 10845 ] | |
HD-Node | Unknown [ 10852 ] |
HD-Enabler | Unknown [ 10910 ] | Cepheus [ 10883 ] |
HD-Chapter | Unknown [ 10845 ] | IoT [ 10839 ] |
Assignee | Christophe Azemar [ cazemar ] |
Status | Open [ 1 ] | In Progress [ 3 ] |
Status | In Progress [ 3 ] | Answered [ 10104 ] |
Resolution | Done [ 10000 ] | |
Status | Answered [ 10104 ] | Closed [ 6 ] |
Summary | [fiware-stackoverflow] How to correctly configure cepheus cep to recalculate a attribute every hour? | FIWARE.Question.Tech.IoT.DataEdge-Cepheus.How to correctly configure cepheus cep to recalculate a attribute every hour? |
HD-Node | Unknown [ 10852 ] |
Fix Version/s | 2021 [ 12600 ] |