script.json 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. {
  2. "name": "script",
  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 run script against the message",
  17. "zh_CN": "用于针对数据运行脚本的操作"
  18. }
  19. },
  20. "properties": [{
  21. "name": "script",
  22. "default": "",
  23. "optional": false,
  24. "control": "textarea",
  25. "type": "string",
  26. "hint": {
  27. "en_US": "The script text, now supports JavaScript only. Must have a function named exec, whose parameter is the message and the return value must be the processed message.",
  28. "zh_CN": "脚本函数的文本,支持javascript。必须包含一个函数,函数名为exec,参数为message,返回值为处理后的message"
  29. },
  30. "label": {
  31. "en_US": "Script",
  32. "zh_CN": "脚本"
  33. }
  34. }],
  35. "node": {
  36. "display": false,
  37. "category": "operator",
  38. "input": {
  39. "type": "row",
  40. "rowType": "any",
  41. "collectionType": "any"
  42. },
  43. "output": {
  44. "type": "same",
  45. "strategy": "keep"
  46. },
  47. "icon": "iconPath",
  48. "label": {
  49. "en": "Script",
  50. "zh": "脚本"
  51. }
  52. }
  53. }