Browse Source

chore: add "retained" field for mqtt sink config (#2203)

Signed-off-by: ogofly <ogofly@outlook.com>
liuyc 1 year atrás
parent
commit
1b5dc86667
1 changed files with 15 additions and 0 deletions
  1. 15 0
      etc/sinks/mqtt.json

+ 15 - 0
etc/sinks/mqtt.json

@@ -121,6 +121,21 @@
       }
     },
     {
+      "name": "retained",
+      "default": false,
+      "optional": true,
+      "control": "radio",
+      "type": "bool",
+      "hint": {
+        "en_US": "The Retained for message delivery.",
+        "zh_CN": "转发后的消息是否保留"
+      },
+      "label": {
+        "en_US": "Retained",
+        "zh_CN": "Retained"
+      }
+    },
+    {
       "name": "username",
       "default": "",
       "optional": true,