Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

ExpressionEngineFunctions

Several spots in the C3 API allow for the use of so-called 'ExpressionEngineFunctions'. These functions take a variety of arguments and perform a variety of The C3 AI Suite also provides a pre-built library of "ExpressionEngineFunctions". Expression EngineFunctions take a variety of arguments and perform various data processing tasks. For example, the function 'contains' takes two strings as arguments, and checks whether the first argument contains the second argument. The function 'lowerCase' takes an as input a string, and returns that same string with all uppercase lowercase letters replaced with lowercase ones. In addition to those these string processing functions,  many math functions exist as well the C3 AI Suite's ExpressionEngine includes many math functions such as 'log', 'avg' which operates , and 'abs', which operate on a variety of various input data types (e.g. int, double, float).

The ExpressionEngine Functions are used in several These functions are very helpful, and can be used in a number of places such as:

  • 'filter' field of FetchSpec
  • 'expression' field of CompoundMetric
  • 'value' field of tsDecl component of tsDecl Metrics.
  • fetch filters
  • simple and compound metric expressions
  • tsDecl metric values

Please see this C3.ai Developer Documentation for a full list of the C3 AI Suite's Official C3 documentation for ExpressionEngineFunctions: https://developer.c3.ai/docs/7.12.0/type/ExpressionEngineFunction

...