{ "libs": [], "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/lf-edge/ekuiper/blob/master/docs/en_US/rules/sources/builtin/http_pull.md", "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sources/builtin/http_pull.md" }, "description": { "en_US": "eKuiper provides built-in support for pulling HTTP source stream, which can pull the message from HTTP server broker and feed into the eKuiper processing pipeline.", "zh_CN": "eKuiper 为提取 HTTP 源流提供了内置支持,该支持可从 HTTP 服务器代理提取消息并输入 eKuiper 处理管道。" } }, "dataSource": { "hint": { "en_US": "The URL endpoint to concatenate with the URL property to form the complete URL, e.g. /api/data", "zh_CN": "URL 的路径部分,与 URL 属性拼接成最终 URL, 例如 /api/data" }, "label": { "en_US": "Data Source (URL Endpoint)", "zh_CN": "数据源(URL拼接路径)" } }, "properties": { "default": [{ "name": "url", "default": "127.0.0.1:5536", "optional": false, "control": "text", "type": "string", "hint": { "en_US": "The URL where to get the result.", "zh_CN": "获取结果的 URL" }, "label": { "en_US": "URL", "zh_CN": "路径" } }, { "name": "method", "default": "get", "optional": false, "control": "select", "type": "string", "values": ["post", "get", "put", "delete"], "hint": { "en_US": "HTTP method, it could be post, get, put & delete.", "zh_CN": "HTTP 方法,它可以是 post、get、put 和 delete。" }, "label": { "en_US": "HTTP method", "zh_CN": "HTTP 方法" } }, { "name": "interval", "default": 1000, "optional": true, "control": "text", "type": "int", "hint": { "en_US": "The interval between the requests, time unit is ms.", "zh_CN": "请求之间的间隔时间,单位为 ms" }, "label": { "en_US": "Interval", "zh_CN": "间隔时间" } }, { "name": "timeout", "default": 5000, "optional": true, "control": "text", "type": "int", "hint": { "en_US": "The timeout for http request, time unit is ms.", "zh_CN": "http 请求的超时时间,单位为 ms" }, "label": { "en_US": "Timeout", "zh_CN": "超时时间" } }, { "name": "incremental", "default": false, "optional": true, "control": "radio", "type": "bool", "hint": { "en_US": "If it's set to true, then will compare with last result; If response of two requests are the same, then will skip sending out the result.", "zh_CN": "如果将其设置为 true,则将与最后的结果进行比较; 如果两个请求的响应相同,则将跳过发送结果。" }, "label": { "en_US": "Incremental", "zh_CN": "递增" } }, { "name": "body", "default": "{}", "optional": true, "control": "textarea", "type": "string", "hint": { "en_US": "The body of request", "zh_CN": "请求的正文" }, "label": { "en_US": "Body", "zh_CN": "正文" } }, { "name": "bodyType", "default": "json", "optional": true, "control": "text", "type": "string", "hint": { "en_US": "Body type, it could be none|text|json|html|xml|javascript|format.", "zh_CN": "正文类型,可以是 none|text|json|html|xml|javascript| 格式" }, "label": { "en_US": "Body type", "zh_CN": "正文类型" } }, { "name": "certificationPath", "default": "", "optional": true, "connection_related": true, "control": "text", "type": "string", "hint": { "en_US": "The location of certification path. It can be an absolute path, or a relative path.", "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 server 命令的路径。" }, "label": { "en_US": "Certification path", "zh_CN": "证书路径" } }, { "name": "privateKeyPath", "default": "", "optional": true, "connection_related": true, "control": "text", "type": "string", "hint": { "en_US": "The location of private key path. It can be an absolute path, or a relative path. ", "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径。" }, "label": { "en_US": "Private key path", "zh_CN": "私钥路径" } }, { "name": "rootCaPath", "default": "", "optional": true, "connection_related": true, "control": "text", "type": "string", "hint": { "en_US": "The location of root ca path. It can be an absolute path, or a relative path. ", "zh_CN": "根证书路径,用以验证服务器证书。可以为绝对路径,也可以为相对路径。" }, "label": { "en_US": "Root CA path", "zh_CN": "根证书路径" } }, { "name": "insecureSkipVerify", "default": true, "optional": true, "control": "radio", "type": "bool", "hint": { "en_US": "Control if to skip the certification verification. If it is set to true, then skip certification verification; Otherwise, verify the certification.", "zh_CN": "控制是否跳过证书认证。如果被设置为 true,那么跳过证书认证;否则进行证书验证。" }, "label": { "en_US": "Skip Certification verification", "zh_CN": "跳过证书验证" } }, { "name": "headers", "default": [{ "name": "Accept", "default": "application/json", "optional": true, "control": "text", "type": "string", "hint": { "en_US": "HTTP headers", "zh_CN": "HTTP标头" }, "label": { "en_US": "HTTP headers", "zh_CN": "HTTP标头" } }], "optional": true, "control": "list", "type": "list_object", "hint": { "en_US": "The HTTP request headers that you want to send along with the HTTP request.", "zh_CN": "需要与 HTTP 请求一起发送的 HTTP 请求标头。" }, "label": { "en_US": "HTTP headers", "zh_CN": "HTTP标头" } }] }, "outputs": [ { "label": { "en_US": "Output", "zh_CN": "输出" }, "value": "signal" } ], "node": { "category": "source", "icon": "iconPath", "label": { "en_US": "HTTP PULL", "zh_CN": "HTTP PULL" } } }