httppull.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. {
  2. "libs": [],
  3. "about": {
  4. "trial": false,
  5. "author": {
  6. "name": "Jiyong Huang",
  7. "email": "huangjy@emqx.io",
  8. "company": "EMQ Technologies Co., Ltd",
  9. "website": "https://www.emqx.io"
  10. },
  11. "helpUrl": {
  12. "en_US": "https://github.com/emqx/kuiper/blob/master/docs/en_US/rules/sources/http_pull.md",
  13. "zh_CN": "https://github.com/emqx/kuiper/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": "",
  38. "optional": false,
  39. "control": "text",
  40. "type": "string",
  41. "hint": {
  42. "en_US": "HTTP method, it could be post, get, put & delete.",
  43. "zh_CN": "HTTP 方法,它可以是 post、get、put 和 delete。"
  44. },
  45. "label": {
  46. "en_US": "HTTP method",
  47. "zh_CN": "HTTP 方法"
  48. }
  49. }, {
  50. "name": "interval",
  51. "default": 1000,
  52. "optional": false,
  53. "control": "text",
  54. "type": "int",
  55. "hint": {
  56. "en_US": "The interval between the requests, time unit is ms.",
  57. "zh_CN": "请求之间的间隔时间,单位为 ms"
  58. },
  59. "label": {
  60. "en_US": "Interval",
  61. "zh_CN": "间隔时间"
  62. }
  63. }, {
  64. "name": "timeout",
  65. "default": 5000,
  66. "optional": false,
  67. "control": "text",
  68. "type": "int",
  69. "hint": {
  70. "en_US": "The timeout for http request, time unit is ms.",
  71. "zh_CN": "http 请求的超时时间,单位为 ms"
  72. },
  73. "label": {
  74. "en_US": "Timeout",
  75. "zh_CN": "超时时间"
  76. }
  77. }, {
  78. "name": "incremental",
  79. "default": false,
  80. "optional": false,
  81. "control": "radio",
  82. "type": "bool",
  83. "hint": {
  84. "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.",
  85. "zh_CN": "如果将其设置为 true,则将与最后的结果进行比较; 如果两个请求的响应相同,则将跳过发送结果。"
  86. },
  87. "label": {
  88. "en_US": "Incremental",
  89. "zh_CN": "递增"
  90. }
  91. }, {
  92. "name": "body",
  93. "default": "{}",
  94. "optional": false,
  95. "control": "textarea",
  96. "type": "string",
  97. "hint": {
  98. "en_US": "The body of request",
  99. "zh_CN": "请求的正文"
  100. },
  101. "label": {
  102. "en_US": "Body",
  103. "zh_CN": "正文"
  104. }
  105. }, {
  106. "name": "bodyType",
  107. "default": "json",
  108. "optional": false,
  109. "control": "text",
  110. "type": "string",
  111. "hint": {
  112. "en_US": "Body type, it could be none|text|json|html|xml|javascript|format.",
  113. "zh_CN": "正文类型,可以是 none|text|json|html|xml|javascript| 格式"
  114. },
  115. "label": {
  116. "en_US": "Body type",
  117. "zh_CN": "正文类型"
  118. }
  119. }, {
  120. "name": "headers",
  121. "default": [{
  122. "name": "Accept",
  123. "default": "application/json",
  124. "optional": false,
  125. "control": "text",
  126. "type": "string",
  127. "hint": {
  128. "en_US": "HTTP headers",
  129. "zh_CN": "HTTP标头"
  130. },
  131. "label": {
  132. "en_US": "HTTP headers",
  133. "zh_CN": "HTTP标头"
  134. }
  135. }],
  136. "optional": false,
  137. "control": "list",
  138. "type": "list_object",
  139. "hint": {
  140. "en_US": "The HTTP request headers that you want to send along with the HTTP request.",
  141. "zh_CN": "需要与 HTTP 请求一起发送的 HTTP 请求标头。"
  142. },
  143. "label": {
  144. "en_US": "HTTP headers",
  145. "zh_CN": "HTTP标头"
  146. }
  147. }]
  148. }
  149. }