httppull.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150
  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": "Kuiper provides built-in support for pulling HTTP source stream, which can pull the message from HTTP server broker and feed into the Kuiper processing pipeline.",
  17. "zh_CN": "Kuiper 为提取 HTTP 源流提供了内置支持,该支持可从 HTTP 服务器代理提取消息并输入 Kuiper 处理管道。"
  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": "headers",
  122. "default": [{
  123. "name": "Accept",
  124. "default": "application/json",
  125. "optional": true,
  126. "control": "text",
  127. "type": "string",
  128. "hint": {
  129. "en_US": "HTTP headers",
  130. "zh_CN": "HTTP标头"
  131. },
  132. "label": {
  133. "en_US": "HTTP headers",
  134. "zh_CN": "HTTP标头"
  135. }
  136. }],
  137. "optional": true,
  138. "control": "list",
  139. "type": "list_object",
  140. "hint": {
  141. "en_US": "The HTTP request headers that you want to send along with the HTTP request.",
  142. "zh_CN": "需要与 HTTP 请求一起发送的 HTTP 请求标头。"
  143. },
  144. "label": {
  145. "en_US": "HTTP headers",
  146. "zh_CN": "HTTP标头"
  147. }
  148. }]
  149. }
  150. }