Skip to content

Commit 521175b

Browse files
authored
pipeline: filter: lua: add description about code 2 (#290)
Signed-off-by: Takahiro YAMASHITA <nokute78@gmail.com>
1 parent 9dcd2b3 commit 521175b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pipeline/filters/lua.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ Each callback **must** return three values:
8181

8282
| name | data type | description |
8383
| :--- | :--- | :--- |
84-
| code | integer | The code return value represents the result and further action that may follows. If _code_ equals -1, means that filter\_lua must drop the record. If _code_ equals 0 the record will not be modified, otherwise if _code_ equals 1, means the original timestamp or record have been modified so it must be replaced by the returned values from _timestamp_ \(second return value\) and _record_ \(third return value\). |
84+
| code | integer | The code return value represents the result and further action that may follows. If _code_ equals -1, means that filter\_lua must drop the record. If _code_ equals 0 the record will not be modified, otherwise if _code_ equals 1, means the original timestamp and record have been modified so it must be replaced by the returned values from _timestamp_ \(second return value\) and _record_ \(third return value\). If _code_ equals 2, means the original timestamp is not modified and the record has been modified so it must be replaced by the returned values from _record_ \(third return value\).|
8585
| timestamp | double | If code equals 1, the original record timestamp will be replaced with this new value. |
8686
| record | table | if code equals 1, the original record information will be replaced with this new value. Note that the format of this value **must** be a valid Lua table. |
8787

0 commit comments

Comments
 (0)