options.json 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  1. {
  2. "helpUrl": {
  3. "en_US": "https://github.com/emqx/kuiper/blob/master/docs/en/rules/overview.md",
  4. "zh_CN": "https://github.com/emqx/kuiper/blob/master/docs/zh/rules/overview.md"
  5. },
  6. "properties": [{
  7. "name": "isEventTime",
  8. "default":false,
  9. "optional": true,
  10. "control": "radio",
  11. "type": "bool",
  12. "hint": {
  13. "en_US": "Whether to use event time or processing time as the timestamp for an event. If event time is used, the timestamp will be extracted from the payload. The timestamp filed must be specified by the stream definition.",
  14. "zh_CN": "使用事件时间还是将时间用作事件的时间戳。 如果使用事件时间,则将从有效负载中提取时间戳。 必须通过 stream 定义指定时间戳记。"
  15. },
  16. "label": {
  17. "en_US": "IsEventTime",
  18. "zh_CN": "是否使用时间事件"
  19. }
  20. }, {
  21. "name": "lateTolerance",
  22. "default": 0,
  23. "optional": true,
  24. "control": "text",
  25. "type": "int",
  26. "hint": {
  27. "en_US": "When working with event-time windowing, it can happen that elements arrive late. LateTolerance can specify by how much time(unit is millisecond) elements can be late before they are dropped. By default, the value is 0 which means late elements are dropped.",
  28. "zh_CN": "在使用事件时间窗口时,可能会出现元素延迟到达的情况。 LateTolerance 可以指定在删除元素之前可以延迟多少时间(单位为 ms)。 默认情况下,该值为0,表示后期元素将被删除。"
  29. },
  30. "label": {
  31. "en_US": "LateTolerance",
  32. "zh_CN": "延迟多少毫秒"
  33. }
  34. }, {
  35. "name": "concurrency",
  36. "default": 1,
  37. "optional": true,
  38. "control": "text",
  39. "type": "int",
  40. "hint": {
  41. "en_US": "A rule is processed by several phases of plans according to the sql statement. This option will specify how many instances will be run for each plan. If the value is bigger than 1, the order of the messages may not be retained.",
  42. "zh_CN": "一条规则运行时会根据 sql 语句分解成多个 plan 运行。该参数设置每个 plan 运行的线程数。该参数值大于1时,消息处理顺序可能无法保证。"
  43. },
  44. "label": {
  45. "en_US": "Concurrency",
  46. "zh_CN": "线程数"
  47. }
  48. }, {
  49. "name": "bufferLength",
  50. "default":1024,
  51. "optional": true,
  52. "control": "text",
  53. "type": "int",
  54. "hint": {
  55. "en_US": "Specify how many messages can be buffered in memory for each plan. If the buffered messages exceed the limit, the plan will block message receiving until the buffered messages have been sent out so that the buffered size is less than the limit. A bigger value will accommodate more throughput but will also take up more memory footprint.",
  56. "zh_CN": "指定每个 plan 可缓存消息数。若缓存消息数超过此限制,plan 将阻塞消息接收,直到缓存消息被消费使得缓存消息数目小于限制为止。此选项值越大,则消息吞吐能力越强,但是内存占用也会越多。"
  57. },
  58. "label": {
  59. "en_US": "BufferLength",
  60. "zh_CN": "缓存大小"
  61. }
  62. }, {
  63. "name": "sendMetaToSink",
  64. "default":false,
  65. "optional": true,
  66. "control": "radio",
  67. "type": "bool",
  68. "hint": {
  69. "en_US": "Specify whether the meta data of an event will be sent to the sink. If true, the sink can get te meta data information.",
  70. "zh_CN": "指定是否将事件的元数据发送到目标。 如果为 true,则目标可以获取元数据信息。"
  71. },
  72. "label": {
  73. "en_US": "SendMetaToSink",
  74. "zh_CN": "是否发送元数据"
  75. }
  76. }, {
  77. "name": "qos",
  78. "default":0,
  79. "optional": true,
  80. "control": "select",
  81. "type": "list_int",
  82. "values":[0,1,2],
  83. "hint": {
  84. "en_US": "Specify the qos of the stream. The options are 0: At most once; 1: At least once and 2: Exactly once. If qos is bigger than 0, the checkpoint mechanism will be activated to save states periodically so that the rule can be resumed from errors.",
  85. "zh_CN": "指定流的 qos。 值为0对应最多一次; 1对应至少一次,2对应恰好一次。 如果 qos 大于0,将激活检查点机制以定期保存状态,以便可以从错误中恢复规则。"
  86. },
  87. "label": {
  88. "en_US": "Qos",
  89. "zh_CN": "流的 qos"
  90. }
  91. }, {
  92. "name": "checkpointInterval",
  93. "default":300000,
  94. "optional": true,
  95. "control": "text",
  96. "type": "int",
  97. "hint": {
  98. "en_US": "Specify the time interval in milliseconds to trigger a checkpoint. This is only effective when qos is bigger than 0.",
  99. "zh_CN": "指定触发检查点的时间间隔(单位为 ms)。 仅当 qos 大于0时才有效。"
  100. },
  101. "label": {
  102. "en_US": "Intervals",
  103. "zh_CN": "检查点间隔毫秒数"
  104. }
  105. }]
  106. }