sample.json 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. {
  2. "about": {
  3. "author": {
  4. "name": "EMQ",
  5. "email": "contact@emqx.io",
  6. "company": "EMQ Technologies Co., Ltd",
  7. "website": "https://www.emqx.io"
  8. },
  9. "helpUrl": {
  10. "en_US": "https://github.com/lf-edge/ekuiper/blob/master/docs/en_US/plugins/functions/functions.md",
  11. "zh_CN": "https://github.com/lf-edge/ekuiper/blob/master/docs/zh_CN/plugins/functions/functions.md"
  12. },
  13. "description": {
  14. "en_US": "Sample external services for test only",
  15. "zh_CN": "示例外部函数配置,仅供测试"
  16. }
  17. },
  18. "interfaces": {
  19. "tsrpc": {
  20. "address": "tcp://localhost:50051",
  21. "protocol": "grpc",
  22. "schemaType": "protobuf",
  23. "schemaFile": "hw.proto",
  24. "functions": [
  25. {
  26. "name": "helloFromGrpc",
  27. "serviceName": "SayHello"
  28. },
  29. {
  30. "name": "ComputeFromGrpc",
  31. "serviceName": "Compute"
  32. },
  33. {
  34. "name": "objectDetectFromGrpc",
  35. "serviceName": "object_detection"
  36. },
  37. {
  38. "name": "getFeatureFromGrpc",
  39. "serviceName": "get_feature"
  40. },
  41. {
  42. "name": "getStatusFromGrpc",
  43. "serviceName": "getStatus"
  44. },
  45. {
  46. "name": "notUsedRpc",
  47. "serviceName": "RestEncodedJson"
  48. }
  49. ]
  50. },
  51. "tsrest": {
  52. "address": "http://localhost:51234",
  53. "protocol": "rest",
  54. "options": {
  55. "insecureSkipVerify": true,
  56. "headers": {
  57. "Accept-Charset": "utf-8"
  58. }
  59. },
  60. "schemaType": "protobuf",
  61. "schemaFile": "hw.proto",
  62. "functions": [
  63. {
  64. "name": "helloFromRest",
  65. "serviceName": "SayHello"
  66. },
  67. {
  68. "name": "ComputeFromRest",
  69. "serviceName": "Compute"
  70. },
  71. {
  72. "name": "objectDetectFromRest",
  73. "serviceName": "object_detection"
  74. },
  75. {
  76. "name": "getFeatureFromRest",
  77. "serviceName": "get_feature"
  78. },
  79. {
  80. "name": "getStatusFromRest",
  81. "serviceName": "getStatus"
  82. },
  83. {
  84. "name": "restEncodedJson",
  85. "serviceName": "RestEncodedJson"
  86. }
  87. ]
  88. },
  89. "tsmsgpack": {
  90. "address": "tcp://localhost:50000",
  91. "protocol": "msgpack-rpc",
  92. "schemaType": "protobuf",
  93. "schemaFile": "hw.proto",
  94. "functions": [
  95. {
  96. "name": "helloFromMsgpack",
  97. "serviceName": "SayHello"
  98. },
  99. {
  100. "name": "ComputeFromMsgpack",
  101. "serviceName": "Compute"
  102. },
  103. {
  104. "name": "objectDetectFromMsgpack",
  105. "serviceName": "object_detection"
  106. },
  107. {
  108. "name": "getFeatureFromMsgpack",
  109. "serviceName": "get_feature"
  110. },
  111. {
  112. "name": "getStatusFromMsgpack",
  113. "serviceName": "getStatus"
  114. },
  115. {
  116. "name": "notUsedMsgpack",
  117. "serviceName": "RestEncodedJson"
  118. }
  119. ]
  120. }
  121. }
  122. }