summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authordoufenghu <[email protected]>2024-06-26 20:48:15 +0800
committerdoufenghu <[email protected]>2024-06-26 20:48:15 +0800
commit7982696e8f826374c183fdf3e265fce857a051c4 (patch)
tree04013f3e215a8502f5a51ff2702b4c941b7b7d04 /docs
parent28ea49260d2f3990c64e5eeaae59056f028b4e80 (diff)
[Improve][docs] Add minute-level precision description for UNIX_TIMESTAMP_CONVERTER.release/1.4.0
Diffstat (limited to 'docs')
-rw-r--r--docs/connector/connector.md6
-rw-r--r--docs/processor/udf.md12
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
```
-
-
-