Deprecation of selected "findAll...()" functions in CEL

Follow

Cumulocity Even Language (CEL) includes a number of query functions for retrieving stored data and correlating the stored data with incoming real-time events (http://cumulocity.com/guides/event-language/functions/). Some of these functions can potentially retrieve large amounts of data and the associated CEL statements may be automatically disabled by Cumulocity's built-in resource monitoring (http://cumulocity.com/guides/event-language/best-practices/). To improve the robustness of CEL when such functions are used and to prevent disabling, Cumulocity will, starting with 9.4, only return a maximum amount of data rows.

In addition to this measure, we are deprecating the use of some functions that will, in real scenarios, always return more data rows than the limit. These functions are:

findAllEventByFragmentType 
findAllEventByFragmentTypeAndType 
findAllMeasurementByFragmentType
findAllMeasurementByFragmentTypeAndType
findAllOperationByAgent
findAllOperationByDevice

The functions are still available, but we encourage you to use functions that filter data in a more strict manner. For example, find all pending operations by using findAllOpererationByAgentAndStatus("<agent ID>", "PENDING") instead.

Have more questions? Submit a request

Comments