httppull.json 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226
  1. {
  2. "libs": [],
  3. "about": {
  4. "trial": false,
  5. "author": {
  6. "name": "EMQ",
  7. "email": "contact@emqx.io",
  8. "company": "EMQ Technologies Co., Ltd",
  9. "website": "https://www.emqx.io"
  10. },
  11. "helpUrl": {
  12. "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/rules/sources/builtin/http_pull.md",
  13. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sources/builtin/http_pull.md"
  14. },
  15. "description": {
  16. "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.",
  17. "zh_CN": "eKuiper 为提取 HTTP 源流提供了内置支持,该支持可从 HTTP 服务器代理提取消息并输入 eKuiper 处理管道。"
  18. }
  19. },
  20. "properties": {
  21. "default": [{
  22. "name": "url",
  23. "default": "127.0.0.1:5536",
  24. "optional": false,
  25. "control": "text",
  26. "type": "string",
  27. "hint": {
  28. "en_US": "The URL where to get the result.",
  29. "zh_CN": "获取结果的 URL"
  30. },
  31. "label": {
  32. "en_US": "URL",
  33. "zh_CN": "路径"
  34. }
  35. }, {
  36. "name": "method",
  37. "default": "get",
  38. "optional": false,
  39. "control": "select",
  40. "type": "string",
  41. "values": ["post", "get", "put", "delete"],
  42. "hint": {
  43. "en_US": "HTTP method, it could be post, get, put & delete.",
  44. "zh_CN": "HTTP 方法,它可以是 post、get、put 和 delete。"
  45. },
  46. "label": {
  47. "en_US": "HTTP method",
  48. "zh_CN": "HTTP 方法"
  49. }
  50. }, {
  51. "name": "interval",
  52. "default": 1000,
  53. "optional": true,
  54. "control": "text",
  55. "type": "int",
  56. "hint": {
  57. "en_US": "The interval between the requests, time unit is ms.",
  58. "zh_CN": "请求之间的间隔时间,单位为 ms"
  59. },
  60. "label": {
  61. "en_US": "Interval",
  62. "zh_CN": "间隔时间"
  63. }
  64. }, {
  65. "name": "timeout",
  66. "default": 5000,
  67. "optional": true,
  68. "control": "text",
  69. "type": "int",
  70. "hint": {
  71. "en_US": "The timeout for http request, time unit is ms.",
  72. "zh_CN": "http 请求的超时时间,单位为 ms"
  73. },
  74. "label": {
  75. "en_US": "Timeout",
  76. "zh_CN": "超时时间"
  77. }
  78. }, {
  79. "name": "incremental",
  80. "default": false,
  81. "optional": true,
  82. "control": "radio",
  83. "type": "bool",
  84. "hint": {
  85. "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.",
  86. "zh_CN": "如果将其设置为 true,则将与最后的结果进行比较; 如果两个请求的响应相同,则将跳过发送结果。"
  87. },
  88. "label": {
  89. "en_US": "Incremental",
  90. "zh_CN": "递增"
  91. }
  92. }, {
  93. "name": "body",
  94. "default": "{}",
  95. "optional": true,
  96. "control": "textarea",
  97. "type": "string",
  98. "hint": {
  99. "en_US": "The body of request",
  100. "zh_CN": "请求的正文"
  101. },
  102. "label": {
  103. "en_US": "Body",
  104. "zh_CN": "正文"
  105. }
  106. }, {
  107. "name": "bodyType",
  108. "default": "json",
  109. "optional": true,
  110. "control": "text",
  111. "type": "string",
  112. "hint": {
  113. "en_US": "Body type, it could be none|text|json|html|xml|javascript|format.",
  114. "zh_CN": "正文类型,可以是 none|text|json|html|xml|javascript| 格式"
  115. },
  116. "label": {
  117. "en_US": "Body type",
  118. "zh_CN": "正文类型"
  119. }
  120. }, {
  121. "name": "certificationPath",
  122. "default": "",
  123. "optional": true,
  124. "connection_related": true,
  125. "control": "text",
  126. "type": "string",
  127. "hint": {
  128. "en_US": "The location of certification path. It can be an absolute path, or a relative path.",
  129. "zh_CN": "证书路径。可以为绝对路径,也可以为相对路径。如果指定的是相对路径,那么父目录为执行 server 命令的路径。"
  130. },
  131. "label": {
  132. "en_US": "Certification path",
  133. "zh_CN": "证书路径"
  134. }
  135. }, {
  136. "name": "privateKeyPath",
  137. "default": "",
  138. "optional": true,
  139. "connection_related": true,
  140. "control": "text",
  141. "type": "string",
  142. "hint": {
  143. "en_US": "The location of private key path. It can be an absolute path, or a relative path. ",
  144. "zh_CN": "私钥路径。可以为绝对路径,也可以为相对路径。"
  145. },
  146. "label": {
  147. "en_US": "Private key path",
  148. "zh_CN": "私钥路径"
  149. }
  150. }, {
  151. "name": "rootCaPath",
  152. "default": "",
  153. "optional": true,
  154. "connection_related": true,
  155. "control": "text",
  156. "type": "string",
  157. "hint": {
  158. "en_US": "The location of root ca path. It can be an absolute path, or a relative path. ",
  159. "zh_CN": "根证书路径,用以验证服务器证书。可以为绝对路径,也可以为相对路径。"
  160. },
  161. "label": {
  162. "en_US": "Root CA path",
  163. "zh_CN": "根证书路径"
  164. }
  165. }, {
  166. "name": "insecureSkipVerify",
  167. "default": true,
  168. "optional": true,
  169. "control": "radio",
  170. "type": "bool",
  171. "hint": {
  172. "en_US": "Control if to skip the certification verification. If it is set to true, then skip certification verification; Otherwise, verify the certification.",
  173. "zh_CN": "控制是否跳过证书认证。如果被设置为 true,那么跳过证书认证;否则进行证书验证。"
  174. },
  175. "label": {
  176. "en_US": "Skip Certification verification",
  177. "zh_CN": "跳过证书验证"
  178. }
  179. }, {
  180. "name": "headers",
  181. "default": [{
  182. "name": "Accept",
  183. "default": "application/json",
  184. "optional": true,
  185. "control": "text",
  186. "type": "string",
  187. "hint": {
  188. "en_US": "HTTP headers",
  189. "zh_CN": "HTTP标头"
  190. },
  191. "label": {
  192. "en_US": "HTTP headers",
  193. "zh_CN": "HTTP标头"
  194. }
  195. }],
  196. "optional": true,
  197. "control": "list",
  198. "type": "list_object",
  199. "hint": {
  200. "en_US": "The HTTP request headers that you want to send along with the HTTP request.",
  201. "zh_CN": "需要与 HTTP 请求一起发送的 HTTP 请求标头。"
  202. },
  203. "label": {
  204. "en_US": "HTTP headers",
  205. "zh_CN": "HTTP标头"
  206. }
  207. }]
  208. },
  209. "outputs": [
  210. {
  211. "label": {
  212. "en_US": "Output",
  213. "zh_CN": "输出"
  214. },
  215. "value": "signal"
  216. }
  217. ],
  218. "node": {
  219. "category": "source",
  220. "icon": "iconPath",
  221. "label": {
  222. "en_US": "HTTP PULL",
  223. "zh_CN": "HTTP PULL"
  224. }
  225. }
  226. }