You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vanus Functions are a series of pre-built functions worked within Vanus transformer. By choosing a function, users can specify the way that events will be changed.
It will be a good start if you decide to contribute to Vanus codes.
Details
For example, if users' original event looks like this:
Now we can make some changes to the original event by creating a function pipeline. All functions will be executed by the order of functions defined in the pipeline. Each function consists of a function name and an array of function parameters .
For example, the create function below will create a new json node with the key "data.source", and the value of JSON node "$.source". And the delete function below will delete the json node with the key "$.data.appinfoA".
Motivation
Vanus Functions are a series of pre-built functions worked within Vanus transformer. By choosing a function, users can specify the way that events will be changed.
It will be a good start if you decide to contribute to Vanus codes.
Details
For example, if users' original event looks like this:
Now we can make some changes to the original event by creating a function pipeline. All functions will be executed by the order of functions defined in the pipeline. Each function consists of a
function name
and an array offunction parameters
.For example, the
create
function below will create a new json node with the key "data.source", and the value of JSON node "$.source". And thedelete
function below will delete the json node with the key "$.data.appinfoA".Function List
structs
strings
array
datetime
math
condition
How to join the event
If you want to implement a specific function, please leave a comment in corresponding issues like:
Vanus community will assign the issue to you on time.
Submit a pull request to suggest your changes.
The text was updated successfully, but these errors were encountered: