{
	"about": {
		"trial": false,
		"author": {
			"name": "EMQ",
			"email": "contact@emqx.io",
			"company": "EMQ Technologies Co., Ltd",
			"website": "https://www.emqx.io"
		},
		"helpUrl": {
			"en_US": "https://github.com/emqx/kuiper/blob/master/docs/en_US/rules/sources/edgex.md",
			"zh_CN": "https://github.com/emqx/kuiper/blob/master/docs/zh_CN/rules/sources/edgex.md"
		},
		"description": {
			"en_US": "Kuiper provides built-in support for EdgeX source stream, which can subscribe the message from EdgeX message bus and feed into the Kuiper streaming process pipeline.",
			"zh_CN": "Kuiper 提供了内置的 EdgeX 源支持，它可以被用来订阅来自于EdgeX 消息总线的数据，并且将数据放入 Kuiper 数据处理流水线中。"
		}
	},
	"properties": {
		"default": [{
				"name": "protocol",
				"default": "tcp",
				"optional": true,
				"control": "select",
				"values": [
					"tcp"
				],
				"type": "string",
				"hint": {
					"en_US": "The protocol. If it's not specified, then use default value 'tcp'.",
					"zh_CN": "协议，如未指定，使用缺省值 tcp。"
				},
				"label": {
					"en_US": "Protocol",
					"zh_CN": "协议"
				}
			},
			{
				"name": "server",
				"default": "localhost",
				"optional": false,
				"control": "text",
				"type": "string",
				"hint": {
					"en_US": "The server address of EdgeX message bus, default value is localhost.",
					"zh_CN": "EdgeX 消息总线的地址。"
				},
				"label": {
					"en_US": "Server address",
					"zh_CN": "地址"
				}
			},
			{
				"name": "port",
				"default": 5573,
				"optional": false,
				"control": "text",
				"type": "int",
				"hint": {
					"en_US": "The port of EdgeX message bus, default value is 5573.",
					"zh_CN": "EdgeX 消息总线的端口"
				},
				"label": {
					"en_US": "Port",
					"zh_CN": "端口"
				}
			},
			{
				"name": "topic",
				"default": "events",
				"optional": false,
				"control": "text",
				"type": "string",
				"hint": {
					"en_US": "The topic name of EdgeX message bus, default value is events.",
					"zh_CN": "EdgeX 消息总线上监听的主题名称"
				},
				"label": {
					"en_US": "Topic",
					"zh_CN": "主题"
				}
			},
			{
				"name": "serviceServer",
				"default": "",
				"optional": false,
				"control": "text",
				"type": "string",
				"hint": {
					"en_US": "The base service address for getting value descriptors, the value of serviceServer will be concatenated to /api/v1/valuedescriptor to get all of value descriptors of EdgeX server.",
					"zh_CN": "访问 value descriptors 的基础服务地址，配置项 serviceServer 的值与 /api/v1/valuedescriptor 拼接后，用于获取 EdgeX 服务器上定义的所有 value descriptors。"
				},
				"label": {
					"en_US": "Service address",
					"zh_CN": "地址"
				}
			},
			{
				"name": "type",
				"default": "",
				"optional": false,
				"control": "text",
				"type": "string",
				"hint": {
					"en_US": "The EdgeX message bus type, currently two types of message buses are supported. If specified other values, then will use the default zero value.",
					"zh_CN": "EdgeX 消息总线类型，目前支持两种消息总线。如果指定了错误的消息总线类型，那么会使用缺省 zero 类型。"
				},
				"label": {
					"en_US": "Type",
					"zh_CN": "类型"
				}
			},
			{
				"name": "optional",
				"default": [{
						"name": "ClientId",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT clientID",
							"zh_CN": "MQTT 客户端 ID"
						},
						"label": {
							"en_US": "MQTT clientID",
							"zh_CN": "MQTT 客户端 ID"
						}
					},
					{
						"name": "Username",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT username",
							"zh_CN": "MQTT 用户名"
						},
						"label": {
							"en_US": "MQTT username",
							"zh_CN": "MQTT 用户名"
						}
					},
					{
						"name": "Password",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT password",
							"zh_CN": "MQTT 密码"
						},
						"label": {
							"en_US": "MQTT password",
							"zh_CN": "MQTT 密码"
						}
					},
					{
						"name": "Qos",
						"default": "",
						"optional": true,
						"control": "select",
						"type": "string",
						"values": [0, 1, 2],
						"hint": {
							"en_US": "MQTT QoS",
							"zh_CN": "MQTT 服务质量"
						},
						"label": {
							"en_US": "MQTT QoS",
							"zh_CN": "MQTT 服务质量"
						}
					},
					{
						"name": "KeepAlive",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT keepalive",
							"zh_CN": "MQTT keepalive"
						},
						"label": {
							"en_US": "MQTT keepalive",
							"zh_CN": "MQTT keepalive"
						}
					},
					{
						"name": "Retained",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT retained",
							"zh_CN": "MQTT retained"
						},
						"label": {
							"en_US": "MQTT retained",
							"zh_CN": "MQTT retained"
						}
					},
					{
						"name": "ConnectionPayload",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT connection payload",
							"zh_CN": "MQTT connection payload"
						},
						"label": {
							"en_US": "MQTT connection payload",
							"zh_CN": "MQTT connection payload"
						}
					},
					{
						"name": "CertFile",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT cert file",
							"zh_CN": "MQTT cert file"
						},
						"label": {
							"en_US": "MQTT cert file",
							"zh_CN": "MQTT cert file"
						}
					},
					{
						"name": "KeyFile",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT key file",
							"zh_CN": "MQTT key file"
						},
						"label": {
							"en_US": "MQTT key file",
							"zh_CN": "MQTT key file"
						}
					},
					{
						"name": "CertPEMBlock",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT cert PEM block",
							"zh_CN": "MQTT cert PEM block"
						},
						"label": {
							"en_US": "MQTT cert PEM block",
							"zh_CN": "MQTT cert PEM block"
						}
					},
					{
						"name": "KeyPEMBlock",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT key PEM block",
							"zh_CN": "MQTT key PEM block"
						},
						"label": {
							"en_US": "MQTT key PEM block",
							"zh_CN": "MQTT key PEM block"
						}
					},
					{
						"name": "SkipCertVerify",
						"default": "",
						"optional": true,
						"control": "text",
						"type": "string",
						"hint": {
							"en_US": "MQTT skip cert verify",
							"zh_CN": "MQTT skip cert verify"
						},
						"label": {
							"en_US": "MQTT skip cert verify",
							"zh_CN": "MQTT skip cert verify"
						}
					}
				],
				"optional": true,
				"control": "list",
				"type": "list_object",
				"hint": {
					"en_US": "If MQTT message bus is used, some other optional configurations can be specified. Please notice that all of values in optional are string type, so values for these configurations should be string - such as KeepAlive: \"5000\".",
					"zh_CN": "如果使用了 MQTT 消息总线，还可以指定别的一些可选配置项。请注意，所有在可选的配置项里指定的值都必须为**字符类型**，因此这里出现的所有的配置应该是字符类型的 - 例如 KeepAlive: \"5000\"。"
				},
				"label": {
					"en_US": "Optional",
					"zh_CN": "选项"
				}
			}
		]
	}
}
