Details
-
Type: Monitor
-
Status: Closed
-
Priority: Major
-
Resolution: Done
-
Affects Version/s: None
-
Fix Version/s: 2021
-
Component/s: FIWARE-TECH-HELP
-
Labels:
-
HD-Chapter:Data
-
HD-Enabler:CEP
Description
Created question in FIWARE Q/A platform on 27-01-2016 at 17:01
Please, ANSWER this question AT http://stackoverflow.com/questions/35042187/proton-cep-absence-epa-not-triggered
Question:
Proton CEP Absence EPA not triggered
Description:
I am unable to get ProtonCEP to create an event based on an absence rule.
The EPA "MissingQueueDataRule" is supposed to create an event "MissingQueueData" in the case that no events of type "QueueContextUpdate" (the entityID of the event is not important) are received in a past time interval (30 seconds).
There are no visible errors in the logs.
{
"epn": {
"events": [
{
"name": "Device",
"createdDate": "Thu Nov 12 2015",
"attributes": [
]
},
{
"name": "Queue",
"createdDate": "Thu Nov 12 2015",
"attributes": [
,
{ "name": "volume", "type": "Integer", "dimension": "0" } ]
},
{
"name": "DeviceContextUpdate",
"createdDate": "Thu Nov 12 2015",
"attributes": [
,
,
,
,
,
{ "name": "efficiencyratio", "type": "Double", "dimension": "0" } ]
},
{
"name": "QueueContextUpdate",
"createdDate": "Thu Nov 12 2015",
"attributes": [
,
,
{ "name": "entityType", "type": "String", "dimension": "0" } ]
},
{
"name": "QueueVolumeHigh",
"createdDate": "Wed Jan 27 2016",
"attributes": [
,
,
,
,
,
,
,
,
,
{ "name": "AffectedEntityVolume", "type": "Integer", "dimension": "0" } ]
},
{
"name": "MissingQueueData",
"createdDate": "Wed Jan 27 2016",
"attributes": [
,
,
,
,
,
{ "name": "EventSeverity", "type": "String", "defaultValue": "\"Warning\"", "dimension": "0" } ]
}
],
"epas": [
{
"name": "CriticalQueueVolumeRule",
"description": "Emit a QueueVolumeHigh with Severity=Critical if any Queue volume > 1000",
"createdDate": "Wed Jan 27 2016",
"createdBy": "Pedro",
"epaType": "All",
"context": "CriticalQueueVolumeComb",
"inputEvents": [
],
"computedVariables": [],
"evaluationPolicy": "Immediate",
"cardinalityPolicy": "Single",
"internalSegmentation": [],
"derivedEvents": [
{
"name": "QueueVolumeHigh",
"reportParticipants": false,
"expressions":
}
]
},
{
"name": "MissingQueueDataRule",
"description": "Detect when the scripts stop working and sending queue data",
"createdDate": "Wed Jan 27 2016",
"epaType": "Absence",
"context": "MissingQueueDataWindow",
"inputEvents": [
],
"computedVariables": [],
"evaluationPolicy": "Deferred",
"cardinalityPolicy": "Single",
"internalSegmentation": [],
"derivedEvents": [
{
"name": "MissingQueueData",
"reportParticipants": false,
"expressions":
}
]
}
],
"contexts": {
"temporal": [
,
{
"name": "CriticalQueueVolumeWindow",
"description": "Start when queue volume > 1000, ends in 30seconds",
"createdDate": "Wed Jan 27 2016",
"createdBy": "Pedro",
"type": "TemporalInterval",
"atStartup": false,
"neverEnding": false,
"initiators": [
],
"terminators": [
,
{ "terminatorType": "RelativeTime", "terminationType": "Terminate", "relativeTime": "300000" } ]
},
{
"name": "MissingQueueDataWindow",
"createdDate": "Wed Jan 27 2016",
"type": "TemporalInterval",
"atStartup": false,
"neverEnding": false,
"initiators": [
],
"terminators": [
]
}
],
"segmentation": [
{
"name": "QueueID",
"description": "Treat objects as distinct based on entityID",
"createdDate": "Wed Jan 27 2016",
"createdBy": "Pedro",
"participantEvents": [
,
{ "name": "QueueVolumeHigh", "expression": "QueueVolumeHigh.AffectedEntity" } ]
}
],
"composite": [
{
"name": "CriticalQueueVolumeComb",
"createdDate": "Wed Jan 27 2016",
"temporalContexts": [
],
"segmentationContexts": [
]
}
]
},
"consumers": [
{
"name": "DeviceReport",
"createdDate": "Thu Nov 12 2015",
"type": "File",
"properties": [
,
,
,
,
{ "name": "SendingDelay", "value": "1000" } ],
"events": [
]
},
{
"name": "QueueReport",
"createdDate": "Thu Nov 12 2015",
"type": "File",
"properties": [
,
,
,
,
{ "name": "SendingDelay", "value": "1000" } ],
"events": [
]
},
{
"name": "DeviceContextUpdateReport",
"createdDate": "Thu Nov 12 2015",
"type": "File",
"properties": [
,
,
,
,
{ "name": "SendingDelay", "value": "1000" } ],
"events": [
]
},
{
"name": "QueueContextUpdateReport",
"createdDate": "Thu Nov 12 2015",
"type": "File",
"properties": [
,
,
,
,
{ "name": "SendingDelay", "value": "1000" } ],
"events": [
,
,
{ "name": "MissingQueueData" } ]
}
],
"producers": [],
"name": "SentinelMonitor"
}
}
2016-01-27 18:05|CREATED monitor | # answers= 0, accepted answer= False