complex-event-processing

Esper data loss when inbound threading is enabled

不羁岁月 提交于 2019-12-11 15:14:01
问题 I found data loss in Esper (v.7.1.0) in case if inbound thread pool is enabled. Here is simple example that demonstrates this strange behaviour: Configuration config = new Configuration(); // set up concurrent processing config.getEngineDefaults().getThreading().setThreadPoolInbound(true); EPServiceProvider epService = EPServiceProviderManager.getDefaultProvider(config); // simple schema epService.getEPAdministrator().createEPL("create objectarray schema LogLine as (account_name string, value

Esper - detect absence of a certain event

▼魔方 西西 提交于 2019-12-11 14:34:50
问题 is it possible to detect the absence of a certain event type within a given time window without using any other event types in Esper? Thanx ;) 回答1: You can take a look at the solution patterns here for some ideas: http://www.espertech.com/esper/solution-patterns#absence-1 Here is an adapted example of detecting an absence of an event, after it has been fired once: select * from pattern [every EventX -> (timer:interval(10 sec) and not EventX)]; This will fire only once, if after an EventX is

CEP Proton The key was not in the map, reason: The key was not in the map

不羁岁月 提交于 2019-12-11 10:14:27
问题 I was trying to integrate Proton with Orion, but when Orion is sending events to Proton, I always get the same error: com.ibm.hrl.proton.webapp.providers.EventJSONMessageReader readFrom SEVERE: Could not parse json event org.apache.wink.json4j.JSONException: The key [Name] was not in the map, reason: The key [Name] was not in the map I have reviewed the attributes names and they are OK. See below the attrNames seen by Cygnus (already integrated with Orion) | 1444683578 | 2015-10-12T20:59:38

WSO2 CEP Multiple rows in resultset

ぃ、小莉子 提交于 2019-12-11 10:09:17
问题 I wanted to know if the WSO2 CEP/Siddhi query supports returning multiple rows if yes how data from those rows can be mapped to the output XML ? e.g. my event stream has a field statusCode which can have values A/B/C I wanted to write a query which gives me the count by status type for past 5 mins e.g A-10,B-5,C-2.. in the current query i used group by statusCode to get the count of status MyQuery- ...insert into TestStream statusCode, count(statusCode) as count group by statusCode and my

CEP List as single items (iterate over managed obejects)

半城伤御伤魂 提交于 2019-12-11 09:02:52
问题 in CEP, I can get managed objects as a list, for example with the function "...ManagedObjectByType". After getting the list, I use the AllOf function to filter the list. Now, I would like to put every single Mangaged Object from the list into a new stream ({A,B,C} -> A,B,C), so they are seperated from each other in order to generate for example alarms in the next stage. Unfortunately, I have no clue how I can produce single events (Managed Objects) from a List. Can someone help? Best, Nico

The concept groupwin is like the unaligned windows?

守給你的承諾、 提交于 2019-12-11 04:36:30
问题 groupwin I use the meaning in esper: This view groups events into sub-views by the value returned by the specified expression or the combination of values returned by a list of expressions. I think it is that you have the ability to operate by group,not stream(the group by is used to control how aggregations are grouped.) unaligned window In google's dataflow ,unaligned windows means: By unaligned windows, we mean windows which do not span the entirety of a data source, but instead only a

Test Event expiration in Drools Fusion CEP

风流意气都作罢 提交于 2019-12-11 01:06:39
问题 Ciao, I have tested in several ways, but I'm still unable to test and verify the Event expiration mechanism in Drools Fusion, so I'm looking for some little guidance, please? I've read the manual and I'm interested in this feature: In other words, one an event is inserted into the working memory, it is possible for the engine to find out when an event can no longer match other facts and automatically retract it, releasing its associated resources. I'm using the Drools IDE in Eclipse, 5.4.0

Using Siddhi patterns for events that haven't happened

送分小仙女□ 提交于 2019-12-08 05:50:55
问题 In the CEP engine can I look for a patterns for events that haven't occurred. Editing the fraud pattern detection query: Can I fire the event if two purchases of the same card are made within one day and if the first purchase is less than $10 and the second one isn't greater than $10,000. from every (a1 = purchase[price > 10] ) NOT -> a2 = purchase [price >10000 and 1.cardNo==a2.cardNo] within 1 day insert into potentialFraud a1.cardNo as cardNo, a2.price as price, a2.place as place; Fire if

Apache Flink - Send event if no data was received for x minutes

流过昼夜 提交于 2019-12-07 08:15:34
问题 How can I implement an operator with Flink's DataStream API that sends an event when no data was received from a stream for a certain amount of time? 回答1: Such an operator can be implemented using a ProcessFunction . DataStream<Long> input = env.fromElements(1L, 2L, 3L, 4L); input // use keyBy to have keyed state. // NullByteKeySelector will move all data to one task. You can also use other keys .keyBy(new NullByteKeySelector()) // use process function with 60 seconds timeout .process(new

Error Cepheus broker not forwards updates to Cepheus CEP

北战南征 提交于 2019-12-06 14:27:52
问题 I use Cepheus GE for my use case and I enabled it in the multi tenant mode and uploaded my config.json file to it, But when I start to send updates to the Cepheus broker in order to forward them to the CEP, the Cepheus broker just receives the updates but doesn't forward them to the Cepheus cap as it couldn't recognize the service and service-path that are set in the config.json . And when I tried to send my updates directly to the Cepheus-CEP, it accepted them and processed them successfully