cumulocity

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

Cumulocity Event Language - call external API

时光毁灭记忆、已成空白 提交于 2019-12-10 15:44:13
问题 Form what I can see on your documentation, it's possible to query the database for additional data when writing CEL, but is it possible to call an external API? Is it also possible to update a Measurement to populate a missing value. For example, if I want to update a measurement by adding the "alt" value of the "c8y_Position" segment by calling a specific API: https://maps.googleapis.com/maps/api/elevation/json?locations=40.714728,-73.998672 Is it possible write this kind of statement:

How the java client in cumulocity listens to events?

独自空忆成欢 提交于 2019-12-02 08:46:18
Aim is to build a java client that subscribe and listen to a channel. Then process the arriving events from the cumulocity server to hadoop. First it was difficult to connect(subscribe) to the cumulocity server using the java client. However, now we have subscriber in place( as we are able to get some value against it as explained in the code comments). Next we want is the subscriber listen to the channel that we have defined in cumulocity server. But we could not get any method or anything useful in the cumulocity java docs that will help to achieve this step. Here is the code. I have