emqx_rule_api_schema.hocon 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387
  1. emqx_rule_api_schema {
  2. event_action.desc:
  3. """Publish or Subscribe"""
  4. event_action.label:
  5. """Publish or Subscribe"""
  6. event_payload.desc:
  7. """The Message Payload"""
  8. event_payload.label:
  9. """Message Payload"""
  10. metrics_actions_failed_out_of_service.desc:
  11. """How many times the rule has failed to call actions due to the action is out of service. For example, a bridge is disabled or stopped."""
  12. metrics_actions_failed_out_of_service.label:
  13. """Fail Action"""
  14. metrics_actions_failed_unknown.desc:
  15. """The number of action failures that have occurred due to unanticipated reasons. For more information on these errors, please refer to the EMQX log file."""
  16. metrics_actions_failed_unknown.label:
  17. """Unknown Failures"""
  18. event_server.desc:
  19. """The IP address (or hostname) and port of the MQTT broker, in IP:Port format"""
  20. event_server.label:
  21. """Server IP And Port"""
  22. metrics_actions_total.desc:
  23. """How many times the actions are called by the rule. This value may several times of 'matched', depending on the number of the actions of the rule."""
  24. metrics_actions_total.label:
  25. """Action Total"""
  26. event_ctx_disconnected_da.desc:
  27. """The Time that this Client is Disconnected"""
  28. event_ctx_disconnected_da.label:
  29. """Disconnected Time"""
  30. event_topic.desc:
  31. """Message Topic"""
  32. event_topic.label:
  33. """Message Topic"""
  34. event_peername.desc:
  35. """The IP Address and Port of the Peer Client"""
  36. event_peername.label:
  37. """IP Address And Port"""
  38. metrics_sql_passed.desc:
  39. """How many times the SQL is passed"""
  40. metrics_sql_passed.label:
  41. """SQL Passed"""
  42. test_context.desc:
  43. """The context of the event for testing"""
  44. test_context.label:
  45. """Event Conetxt"""
  46. stop_action_after_template_render.desc:
  47. """Set this to true if the action should be stopped after its template has been rendered (default is true)."""
  48. stop_action_after_template_render.label:
  49. """Stop Action After Template Rendering"""
  50. node_node.desc:
  51. """The node name"""
  52. node_node.label:
  53. """Node Name"""
  54. event_from_clientid.desc:
  55. """The Client ID"""
  56. event_from_clientid.label:
  57. """Client ID"""
  58. event_keepalive.desc:
  59. """KeepAlive"""
  60. event_keepalive.label:
  61. """KeepAlive"""
  62. event_connected_at.desc:
  63. """The Time that this Client is Connected"""
  64. event_connected_at.label:
  65. """Connected Time"""
  66. metrics_sql_failed_exception.desc:
  67. """How many times the SQL is failed due to exceptions. This may because of a crash when calling a SQL function, or trying to do arithmetic operation on undefined variables"""
  68. metrics_sql_failed_exception.label:
  69. """SQL Exception"""
  70. event_from_username.desc:
  71. """The User Name"""
  72. event_from_username.label:
  73. """Username"""
  74. event_ctx_connack_reason_code.desc:
  75. """The reason code"""
  76. event_ctx_connack_reason_code.label:
  77. """Reason Code"""
  78. rs_description.desc:
  79. """The description"""
  80. rs_description.label:
  81. """Description"""
  82. rule_id.desc:
  83. """The ID of the rule"""
  84. rule_id.label:
  85. """Rule ID"""
  86. rs_event.desc:
  87. """The event topics"""
  88. rs_event.label:
  89. """Event Topics"""
  90. root_rule_engine.desc:
  91. """Rule engine configurations. This API can be used to change EMQX rule engine settings. But not for the rules. To list, create, or update rules, call the '/rules' API instead."""
  92. root_rule_engine.label:
  93. """Rule engine configuration"""
  94. event_sockname.desc:
  95. """The IP Address and Port of the Local Listener"""
  96. event_sockname.label:
  97. """IP Address And Port"""
  98. event_qos.desc:
  99. """The Message QoS"""
  100. event_qos.label:
  101. """Message QoS"""
  102. event_mountpoint.desc:
  103. """The Mountpoint"""
  104. event_mountpoint.label:
  105. """Mountpoint"""
  106. rs_title.desc:
  107. """The title"""
  108. rs_title.label:
  109. """Title"""
  110. ri_metrics.desc:
  111. """The metrics of the rule"""
  112. ri_metrics.label:
  113. """Rule Metrics"""
  114. event_retain.desc:
  115. """If is a retain message"""
  116. event_retain.label:
  117. """Retain Message"""
  118. event_event_type.desc:
  119. """Event Type"""
  120. event_event_type.label:
  121. """Event Type"""
  122. event_expiry_interval.desc:
  123. """Expiry Interval"""
  124. event_expiry_interval.label:
  125. """Expiry Interval"""
  126. metrics_sql_matched.desc:
  127. """How many times the FROM clause of the SQL is matched."""
  128. metrics_sql_matched.label:
  129. """Matched"""
  130. event_clientid.desc:
  131. """The Client ID"""
  132. event_clientid.label:
  133. """Client ID"""
  134. metrics_actions_success.desc:
  135. """How many times the rule successided to call the actions."""
  136. metrics_actions_success.label:
  137. """Success Action"""
  138. metrics_actions_failed.desc:
  139. """How many times the rule failed to call the actions."""
  140. metrics_actions_failed.label:
  141. """Failed Action"""
  142. metrics_sql_matched_rate.desc:
  143. """The rate of matched, times/second"""
  144. metrics_sql_matched_rate.label:
  145. """命中速率"""
  146. event_proto_ver.desc:
  147. """Protocol Version"""
  148. event_proto_ver.label:
  149. """Protocol Version"""
  150. event_publish_received_at.desc:
  151. """The Time that this Message is Received"""
  152. event_publish_received_at.label:
  153. """Message Received Time"""
  154. metrics_sql_matched_rate_last5m.desc:
  155. """The average rate of matched in last 5 minutes, times/second"""
  156. metrics_sql_matched_rate_last5m.label:
  157. """Average Matched Rate"""
  158. event_is_bridge.desc:
  159. """Is Bridge"""
  160. event_is_bridge.label:
  161. """Is Bridge"""
  162. event_authz_source.desc:
  163. """Cache, Plugs or Default"""
  164. event_authz_source.label:
  165. """Auth Source"""
  166. metrics_sql_failed_unknown.desc:
  167. """How many times the SQL is failed due to an unknown error."""
  168. metrics_sql_failed_unknown.label:
  169. """SQL Unknown Error"""
  170. metrics_sql_failed.desc:
  171. """How many times the SQL statement has failed"""
  172. metrics_sql_failed.label:
  173. """SQL Failed"""
  174. event_ctx_dropped.desc:
  175. """The Reason for Dropping"""
  176. event_ctx_dropped.label:
  177. """Dropped Reason"""
  178. root_rule_test.desc:
  179. """Schema for testing rules"""
  180. root_rule_test.label:
  181. """Rule Test Schema"""
  182. rs_test_columns.desc:
  183. """The test columns"""
  184. rs_test_columns.label:
  185. """Test Columns"""
  186. event_peerhost.desc:
  187. """The IP Address of the Peer Client"""
  188. event_peerhost.label:
  189. """Peer IP Address"""
  190. event_proto_name.desc:
  191. """Protocol Name"""
  192. event_proto_name.label:
  193. """Protocol Name"""
  194. root_rule_events.desc:
  195. """Schema for rule events"""
  196. root_rule_events.label:
  197. """Rule Events Schema"""
  198. rs_sql_example.desc:
  199. """The sql_example"""
  200. rs_sql_example.label:
  201. """SQL Example"""
  202. metrics_sql_matched_rate_max.desc:
  203. """The max rate of matched, times/second"""
  204. metrics_sql_matched_rate_max.label:
  205. """Max Matched Rate"""
  206. event_clean_start.desc:
  207. """Clean Start"""
  208. event_clean_start.label:
  209. """Clean Start"""
  210. ri_created_at.desc:
  211. """The created time of the rule"""
  212. ri_created_at.label:
  213. """Rule Create Time"""
  214. event_dup.desc:
  215. """The DUP flag of the MQTT message"""
  216. event_dup.label:
  217. """DUP Flag"""
  218. ri_from.desc:
  219. """The topics of the rule"""
  220. ri_from.label:
  221. """Topics of Rule"""
  222. ri_node_metrics.desc:
  223. """The metrics of the rule for each node"""
  224. ri_node_metrics.label:
  225. """Each Node Rule Metrics"""
  226. root_rule_creation.desc:
  227. """Schema for creating rules"""
  228. root_rule_creation.label:
  229. """Create Schema"""
  230. event_result.desc:
  231. """Allow or Deny"""
  232. event_result.label:
  233. """Auth Result"""
  234. event_id.desc:
  235. """Message ID"""
  236. event_id.label:
  237. """Message ID"""
  238. event_username.desc:
  239. """Username"""
  240. event_username.label:
  241. """Username"""
  242. root_rule_info.desc:
  243. """Schema for rule info"""
  244. root_rule_info.label:
  245. """Info Schema"""
  246. rs_columns.desc:
  247. """The columns"""
  248. rs_columns.label:
  249. """Column"""
  250. test_sql.desc:
  251. """The SQL of the rule for testing"""
  252. test_sql.label:
  253. """Test SQL"""
  254. event_ctx_disconnected_reason.desc:
  255. """The Reason for Disconnect"""
  256. event_ctx_disconnected_reason.label:
  257. """Disconnect Reason"""
  258. }