emqx_rule_api_schema.hocon 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414
  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. metrics_actions_discarded.desc:
  19. """The number of discarded actions due to action being disabled or race condition while action is being deleted."""
  20. metrics_actions_discarded.label:
  21. """Discarded"""
  22. event_server.desc:
  23. """The IP address (or hostname) and port of the MQTT broker, in IP:Port format"""
  24. event_server.label:
  25. """Server IP And Port"""
  26. metrics_actions_total.desc:
  27. """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."""
  28. metrics_actions_total.label:
  29. """Action Total"""
  30. event_ctx_disconnected_da.desc:
  31. """The Time that this Client is Disconnected"""
  32. event_ctx_disconnected_da.label:
  33. """Disconnected Time"""
  34. event_topic.desc:
  35. """Message Topic"""
  36. event_topic.label:
  37. """Message Topic"""
  38. event_peername.desc:
  39. """The IP Address and Port of the Peer Client"""
  40. event_peername.label:
  41. """IP Address And Port"""
  42. metrics_sql_passed.desc:
  43. """How many times the SQL is passed"""
  44. metrics_sql_passed.label:
  45. """SQL Passed"""
  46. test_context.desc:
  47. """The context of the event for testing"""
  48. test_context.label:
  49. """Event Conetxt"""
  50. stop_action_after_template_render.desc:
  51. """Set this to true if the action should be stopped after its template has been rendered (default is true)."""
  52. stop_action_after_template_render.label:
  53. """Stop Action After Template Rendering"""
  54. node_node.desc:
  55. """The node name"""
  56. node_node.label:
  57. """Node Name"""
  58. event_from_clientid.desc:
  59. """The Client ID"""
  60. event_from_clientid.label:
  61. """Client ID"""
  62. event_keepalive.desc:
  63. """KeepAlive"""
  64. event_keepalive.label:
  65. """KeepAlive"""
  66. event_connected_at.desc:
  67. """The Time that this Client is Connected"""
  68. event_connected_at.label:
  69. """Connected Time"""
  70. metrics_sql_failed_exception.desc:
  71. """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"""
  72. metrics_sql_failed_exception.label:
  73. """SQL Exception"""
  74. event_from_username.desc:
  75. """The User Name"""
  76. event_from_username.label:
  77. """Username"""
  78. event_ctx_connack_reason_code.desc:
  79. """The reason code"""
  80. event_ctx_connack_reason_code.label:
  81. """Reason Code"""
  82. rs_description.desc:
  83. """The description"""
  84. rs_description.label:
  85. """Description"""
  86. rule_id.desc:
  87. """The ID of the rule"""
  88. rule_id.label:
  89. """Rule ID"""
  90. rs_event.desc:
  91. """The event topics"""
  92. rs_event.label:
  93. """Event Topics"""
  94. root_rule_engine.desc:
  95. """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."""
  96. root_rule_engine.label:
  97. """Rule engine configuration"""
  98. event_sockname.desc:
  99. """The IP Address and Port of the Local Listener"""
  100. event_sockname.label:
  101. """IP Address And Port"""
  102. event_qos.desc:
  103. """The Message QoS"""
  104. event_qos.label:
  105. """Message QoS"""
  106. event_mountpoint.desc:
  107. """The Mountpoint"""
  108. event_mountpoint.label:
  109. """Mountpoint"""
  110. rs_title.desc:
  111. """The title"""
  112. rs_title.label:
  113. """Title"""
  114. ri_metrics.desc:
  115. """The metrics of the rule"""
  116. ri_metrics.label:
  117. """Rule Metrics"""
  118. event_retain.desc:
  119. """If is a retain message"""
  120. event_retain.label:
  121. """Retain Message"""
  122. event_event_type.desc:
  123. """Event Type"""
  124. event_event_type.label:
  125. """Event Type"""
  126. event_expiry_interval.desc:
  127. """Expiry Interval"""
  128. event_expiry_interval.label:
  129. """Expiry Interval"""
  130. metrics_sql_matched.desc:
  131. """How many times the FROM clause of the SQL is matched."""
  132. metrics_sql_matched.label:
  133. """Matched"""
  134. event_clientid.desc:
  135. """The Client ID"""
  136. event_clientid.label:
  137. """Client ID"""
  138. metrics_actions_success.desc:
  139. """How many times the rule successided to call the actions."""
  140. metrics_actions_success.label:
  141. """Success Action"""
  142. metrics_actions_failed.desc:
  143. """How many times the rule failed to call the actions."""
  144. metrics_actions_failed.label:
  145. """Failed Action"""
  146. metrics_sql_matched_rate.desc:
  147. """The rate of matched, times/second"""
  148. metrics_sql_matched_rate.label:
  149. """命中速率"""
  150. event_proto_ver.desc:
  151. """Protocol Version"""
  152. event_proto_ver.label:
  153. """Protocol Version"""
  154. event_publish_received_at.desc:
  155. """The Time that this Message is Received"""
  156. event_publish_received_at.label:
  157. """Message Received Time"""
  158. metrics_sql_matched_rate_last5m.desc:
  159. """The average rate of matched in last 5 minutes, times/second"""
  160. metrics_sql_matched_rate_last5m.label:
  161. """Average Matched Rate"""
  162. event_is_bridge.desc:
  163. """Is Bridge"""
  164. event_is_bridge.label:
  165. """Is Bridge"""
  166. event_authz_source.desc:
  167. """Cache, Plugs or Default"""
  168. event_authz_source.label:
  169. """Auth Source"""
  170. metrics_sql_failed_unknown.desc:
  171. """How many times the SQL is failed due to an unknown error."""
  172. metrics_sql_failed_unknown.label:
  173. """SQL Unknown Error"""
  174. metrics_sql_failed.desc:
  175. """How many times the SQL statement has failed"""
  176. metrics_sql_failed.label:
  177. """SQL Failed"""
  178. event_ctx_dropped.desc:
  179. """The Reason for Dropping"""
  180. event_ctx_dropped.label:
  181. """Dropped Reason"""
  182. root_rule_test.desc:
  183. """Schema for testing rules"""
  184. root_rule_test.label:
  185. """Rule Test Schema"""
  186. rs_test_columns.desc:
  187. """The test columns"""
  188. rs_test_columns.label:
  189. """Test Columns"""
  190. event_peerhost.desc:
  191. """The IP Address of the Peer Client"""
  192. event_peerhost.label:
  193. """Peer IP Address"""
  194. event_proto_name.desc:
  195. """Protocol Name"""
  196. event_proto_name.label:
  197. """Protocol Name"""
  198. root_rule_events.desc:
  199. """Schema for rule events"""
  200. root_rule_events.label:
  201. """Rule Events Schema"""
  202. rs_sql_example.desc:
  203. """The sql_example"""
  204. rs_sql_example.label:
  205. """SQL Example"""
  206. metrics_sql_matched_rate_max.desc:
  207. """The max rate of matched, times/second"""
  208. metrics_sql_matched_rate_max.label:
  209. """Max Matched Rate"""
  210. event_clean_start.desc:
  211. """Clean Start"""
  212. event_clean_start.label:
  213. """Clean Start"""
  214. ri_created_at.desc:
  215. """The created time of the rule"""
  216. ri_created_at.label:
  217. """Rule Create Time"""
  218. event_dup.desc:
  219. """The DUP flag of the MQTT message"""
  220. event_dup.label:
  221. """DUP Flag"""
  222. ri_from.desc:
  223. """The topics of the rule"""
  224. ri_from.label:
  225. """Topics of Rule"""
  226. ri_node_metrics.desc:
  227. """The metrics of the rule for each node"""
  228. ri_node_metrics.label:
  229. """Each Node Rule Metrics"""
  230. root_rule_creation.desc:
  231. """Schema for creating rules"""
  232. root_rule_creation.label:
  233. """Create Schema"""
  234. event_result.desc:
  235. """Allow or Deny"""
  236. event_result.label:
  237. """Auth Result"""
  238. event_id.desc:
  239. """Message ID"""
  240. event_id.label:
  241. """Message ID"""
  242. event_username.desc:
  243. """Username"""
  244. event_username.label:
  245. """Username"""
  246. event_validation.desc:
  247. """Validation"""
  248. event_validation.label:
  249. """Validation"""
  250. event_transformation.desc:
  251. """Transformation"""
  252. event_transformation.label:
  253. """Transformation"""
  254. root_rule_info.desc:
  255. """Schema for rule info"""
  256. root_rule_info.label:
  257. """Info Schema"""
  258. rs_columns.desc:
  259. """The columns"""
  260. rs_columns.label:
  261. """Column"""
  262. test_sql.desc:
  263. """The SQL of the rule for testing"""
  264. test_sql.label:
  265. """Test SQL"""
  266. event_ctx_disconnected_reason.desc:
  267. """The Reason for Disconnect"""
  268. event_ctx_disconnected_reason.label:
  269. """Disconnect Reason"""
  270. event_is_anonymous.desc:
  271. """True if this user is anonymous."""
  272. event_is_superuser.desc:
  273. """True if this is a super user."""
  274. event_ctx_authn_reason_code.desc:
  275. """The reason code"""
  276. }