From 4dc1ffbed0a8f6ea3e40a24b6c5203fa774b5626 Mon Sep 17 00:00:00 2001 From: Jiyong Huang Date: Mon, 27 Nov 2023 12:08:34 +0800 Subject: [PATCH] chore: update influx2 json Signed-off-by: Jiyong Huang --- extensions/sinks/influx2/influx2.json | 56 ++++++++++++++++++++------- 1 file changed, 43 insertions(+), 13 deletions(-) diff --git a/extensions/sinks/influx2/influx2.json b/extensions/sinks/influx2/influx2.json index 0220b94073..335411e92a 100644 --- a/extensions/sinks/influx2/influx2.json +++ b/extensions/sinks/influx2/influx2.json @@ -90,33 +90,63 @@ "zh_CN": "桶" } }, { - "name": "tagKey", - "default": "tagKey", + "name": "precision", + "default": "ms", "optional": true, "control": "text", "type": "string", "hint": { - "en_US": "The tag key of the InfluxDB", - "zh_CN": "InfluxDB 的标签键" + "en_US": "The time precision", + "zh_CN": "时间精度" }, "label": { - "en_US": "Tag", - "zh_CN": "标签键" + "en_US": "Precision", + "zh_CN": "时间精度" } + }, + { + "name": "useLineProtocol", + "default": "false", + "optional": true, + "control": "radio", + "type": "bool", + "hint": { + "en_US": "Use line protocol format or not", + "zh_CN": "是否使用行协议写入格式" + }, + "label": { + "en_US": "Use Line Protocol", + "zh_CN": "使用行协议" + } }, { - "name": "tagValue", - "default": "tagValue", - "optional": true, + "name": "tags", + "default": "", + "optional": true, "control": "text", "type": "string", "hint": { - "en_US": "The tag value of the InfluxDB", - "zh_CN": "InfluxDB 的标签值" + "en_US": "The tags map", + "zh_CN": "标签映射" }, "label": { - "en_US": "Tag value", - "zh_CN": "标签值" + "en_US": "Tags", + "zh_CN": "标签" } + }, + { + "name": "tsFieldName", + "default": "", + "optional": true, + "control": "text", + "type": "string", + "hint": { + "en_US": "Timestamp Field Name", + "zh_CN": "时间戳字段名" + }, + "label": { + "en_US": "Timestamp Field Name", + "zh_CN": "时间戳字段名" + } }], "node": { "category": "sink",