httppull.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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/http_pull.md",
  13. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/rules/sources/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": "insecureSkipVerify",
  122. "default": true,
  123. "optional": true,
  124. "control": "radio",
  125. "type": "bool",
  126. "hint": {
  127. "en_US": "Control if to skip the certification verification. If it is set to true, then skip certification verification; Otherwise, verify the certification.",
  128. "zh_CN": "控制是否跳过证书认证。如果被设置为 true,那么跳过证书认证;否则进行证书验证。"
  129. },
  130. "label": {
  131. "en_US": "Skip Certification verification",
  132. "zh_CN": "跳过证书验证"
  133. }
  134. }, {
  135. "name": "headers",
  136. "default": [{
  137. "name": "Accept",
  138. "default": "application/json",
  139. "optional": true,
  140. "control": "text",
  141. "type": "string",
  142. "hint": {
  143. "en_US": "HTTP headers",
  144. "zh_CN": "HTTP标头"
  145. },
  146. "label": {
  147. "en_US": "HTTP headers",
  148. "zh_CN": "HTTP标头"
  149. }
  150. }],
  151. "optional": true,
  152. "control": "list",
  153. "type": "list_object",
  154. "hint": {
  155. "en_US": "The HTTP request headers that you want to send along with the HTTP request.",
  156. "zh_CN": "需要与 HTTP 请求一起发送的 HTTP 请求标头。"
  157. },
  158. "label": {
  159. "en_US": "HTTP headers",
  160. "zh_CN": "HTTP标头"
  161. }
  162. }]
  163. }
  164. }