DDDHuang 8b0adf69d2 Merge pull request #7926 from DDDHuang/rule_api_errormsg 3 лет назад
..
etc b3d9605722 chore(conf): EMQ X -> EMQX in conf files 4 лет назад
i18n a58b88aeec chore(i18n): fix more and more typos 3 лет назад
include 02c3f87b31 style: reformat all remaining apps 3 лет назад
src 8b0adf69d2 Merge pull request #7926 from DDDHuang/rule_api_errormsg 3 лет назад
test 5210cd6e8d fix(test): rule engine api SUITE , bad rule name 3 лет назад
.gitignore 4a877a3a69 chore(apps): relocate some apps 5 лет назад
README.md 1be3eb1446 chore: rename EMQX Broker to just EMQX 4 лет назад
rebar.config 74c33cd4e5 feat(rule_engine): add jq function to the rule engine 3 лет назад

README.md

emqx-rule-engine

IoT Rule Engine

Concept

iot rule "Rule Name"
  when
     match TopicFilters and Conditions
  select
    para1 = val1
    para2 = val2
  then
    take action(#{para2 => val1, #para2 => val2})

Architecture

          |-----------------|
 Pub ---->| Message Routing |----> Sub
          |-----------------|
               |     /|\
              \|/     |
          |-----------------|
          |   Rule Engine   |
          |-----------------|
               |      |
        Backends Services Bridges

SQL for Rule query statement

select id, time, temperature as t from "topic/a" where t > 50;