switch.json 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. {
  2. "name": "switch",
  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/sqls/query_language_elements.md",
  13. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/sqls/query_language_elements.md"
  14. },
  15. "description": {
  16. "en_US": "An operation to route events to different branches based on a case condition similar to switch statement in programming languages.",
  17. "zh_CN": "用于根据条件分流数据的操作,类似编程语言中的 switch 语句。"
  18. }
  19. },
  20. "properties": [
  21. {
  22. "name": "cases",
  23. "optional": false,
  24. "control": "list",
  25. "type": "string",
  26. "hint": {
  27. "en_US": "case condition expression",
  28. "zh_CN": "分流条件语句"
  29. },
  30. "label": {
  31. "en_US": "Cases",
  32. "zh_CN": "条件"
  33. }
  34. },{
  35. "name": "stopAtFirstMatch",
  36. "default": false,
  37. "optional": false,
  38. "control": "checkbox",
  39. "type": "boolean",
  40. "hint": {
  41. "en_US": "Stop at first match",
  42. "zh_CN": "接受第一条匹配信息后停止"
  43. },
  44. "label": {
  45. "en_US": "Stop at first match",
  46. "zh_CN": "接受第一条匹配信息后停止"
  47. }
  48. }
  49. ],
  50. "node": {
  51. "display": true,
  52. "category": "operator",
  53. "input": {
  54. "type": "any",
  55. "rowType": "any",
  56. "collectionType": "any"
  57. },
  58. "output": {
  59. "type": "same",
  60. "strategy": "keep"
  61. },
  62. "icon": "iconPath",
  63. "label": {
  64. "en": "Switch",
  65. "zh": "Switch"
  66. }
  67. }
  68. }