diff options
| -rw-r--r-- | docs/connector/connector.md | 6 | ||||
| -rw-r--r-- | docs/processor/udf.md | 12 |
2 files changed, 9 insertions, 9 deletions
diff --git a/docs/connector/connector.md b/docs/connector/connector.md index ff796e6..943b03c 100644 --- a/docs/connector/connector.md +++ b/docs/connector/connector.md @@ -204,6 +204,12 @@ Mock data type supports some common parameters. ```json {"name":"phoneNumber","type":"Expression","expression":"#{phoneNumber.phoneNumber}"} ``` +### Eval +- Generate a value by using AviatorScript expression. Commonly used for arithmetic operations. +```json +{"name": "bytes", "type": "Eval", "expression": "in_bytes + out_bytes"} +``` + ### Object - Generate a object data structure. diff --git a/docs/processor/udf.md b/docs/processor/udf.md index c81b705..6bd87b0 100644 --- a/docs/processor/udf.md +++ b/docs/processor/udf.md @@ -465,12 +465,9 @@ Unix timestamp converter function is used to convert the unix timestamp precisio - lookup_fields: required - output_fields: required - parameters: required - - precision: `<String>` required. Enum: `milliseconds`, `seconds`. - -Example: - -_`__timestamp` Internal field, from source ingestion time or current unix timestamp._ - + - precision: `<String>` required. Enum: `milliseconds`, `seconds`, `minutes`. The minutes precision is used to generate Unix timestamp, round it to the minute level, and output it in seconds format. + - Example: +_`__timestamp` Internal field, from source ingestion time or current unix timestamp. ```yaml - function: UNIX_TIMESTAMP_CONVERTER lookup_fields: [__timestamp] @@ -480,8 +477,5 @@ _`__timestamp` Internal field, from source ingestion time or current unix timest ``` - - - |
