Shawn
b9d75181e5
chore: update emqx_rule_engine.appup.src
2022-09-08 16:38:34 +08:00
Shawn
f0cc75d144
fix(sql): topic matching to null values should return false
2022-09-08 16:37:38 +08:00
Thales Macedo Garitezi
87cc57096f
Merge remote-tracking branch 'origin/main-v4.3' into merge-v43-into-v44-f
2022-09-01 15:44:08 -03:00
Zaiming (Stone) Shi
51412e25c8
fix(emqx_rule_engine): fix rule update function
...
Prior to this change, the update of a rule will always try to
initialise the action because the 'enabled' flag is by default 'true'
2022-08-31 15:13:38 +02:00
Zaiming (Stone) Shi
6f28e0eb83
chore: update appup files
2022-08-31 08:07:42 +02:00
Thales Macedo Garitezi
b4cb256612
chore: bump app vsns and update appups
2022-08-30 18:02:31 -03:00
Thales Macedo Garitezi
e05605bef0
Merge remote-tracking branch 'origin/main-v4.3' into merge-v43-into-v44-e
2022-08-30 16:38:14 -03:00
Thales Macedo Garitezi
977ac04d24
chore: fix dialyzer errors
2022-08-26 16:09:39 -03:00
zhongwencool
940ceb570d
Merge branch 'main-v4.4' into copy-of-main-v4.3
2022-08-19 10:53:48 +08:00
Shawn
413612a69d
fix: duplicate appup instructions
2022-08-18 09:18:41 +08:00
Xinyu Liu
88cf427ecc
Merge branch 'main-v4.3' into fix_sql_compare
2022-08-17 18:24:03 +08:00
JimMoen
0502be6055
chore(typo): fix typo
2022-08-17 15:36:04 +08:00
JimMoen
4a89dfe362
chore: update CHANGES.md and appup.src
...
This reverts commit 7af25a82e70845a631be0c8b83ba7f1838d68389.
2022-08-17 11:48:59 +08:00
JimMoen
67ec6e0e66
fix: log RuleId for take action failed
2022-08-17 11:09:58 +08:00
Shawn
582ead1d77
fix: update appup for rule engine
2022-08-16 21:38:57 +08:00
Shawn
4055b20259
fix: sql compare to undefined values
2022-08-16 21:32:24 +08:00
Ilya Averyanov
a19fbe214f
feat(node_rebalance): implement node evacuation and rebalancing
2022-08-13 11:32:14 +03:00
Thales Macedo Garitezi
fc9e802b26
chore: bump release version, app vsns, appups
2022-08-12 13:41:52 -03:00
Zaiming (Stone) Shi
db979f7b48
chore: update release version and appups prepare for new version 4.4.7
2022-08-03 13:41:11 +02:00
Zaiming (Stone) Shi
744af708f1
chore: update appup files for 4.3.18
2022-08-02 15:58:04 +02:00
Xinyu Liu
84c2aceba9
Merge branch 'main-v4.4' into copy-of_main-v4.3
2022-07-20 21:29:49 +08:00
Shawn
691407f9fd
fix: add type binary_file to emqx_rule_validator
2022-07-20 11:16:44 +08:00
zhongwencool
b6b4ad9b70
chore: update appup.src
2022-07-19 18:44:04 +08:00
zhongwencool
28e5539645
chore: revert emqx.appup.src
2022-07-19 17:45:25 +08:00
zhongwencool
368fe40c34
fix: merge appup.src
2022-07-19 11:50:08 +08:00
zhongwencool
3248cb92e8
Merge branch 'main-v4.3' into sync-4.3-to-4.4
2022-07-19 11:02:11 +08:00
zhongwencool
9b433eb002
fix: list_rules support enable_paging
2022-07-13 10:06:18 +08:00
zhongwencool
d1254faf6f
feat: list rules support for pagination and fuzzy filtering
2022-07-08 16:54:35 +08:00
JianBo He
6eadacd5a2
chore: bump rule-engine app vsn
2022-07-04 11:32:05 +08:00
Xinyu Liu
c812975ca6
Merge branch 'main-v4.4' into copy-of-main-v4.3
2022-06-27 21:34:11 +08:00
Shawn
0a99e835e7
fix: fallback action not triggered when send to webhook failed
2022-06-24 14:34:40 +08:00
Xinyu Liu
dc777c68a1
Merge branch 'main-v4.4' into copy-of_main-v4.3
2022-06-20 11:22:58 +08:00
Thales Macedo Garitezi
13f575bc84
chore(relup): bump release and app vsns, update appups
2022-06-15 13:45:05 -03:00
Georgy Sychev
f3b596eb7e
fix(webhook): removed User-Property field from message
2022-06-15 20:29:41 +04:00
Thales Macedo Garitezi
b93a0743ac
Merge branch 'main-v4.3' into 'main-v4.4'
2022-06-15 10:48:02 -03:00
DDDHuang
1e02656035
fix(rule): better func name for emqx_rule_utils
2022-06-13 16:27:41 +08:00
DDDHuang
c5f754c3b8
fix(suite): add republish qos & retain test case
2022-06-10 17:21:45 +08:00
DDDHuang
e1e2fd50fd
fix(republish): action input editable_select
2022-06-10 16:22:35 +08:00
DDDHuang
7d848950c7
fix(republish): to_qos & to_retain, add new util funcs
2022-06-10 16:10:30 +08:00
DDDHuang
ac700b8e6f
fix(rule): replubish SUIT
2022-06-09 17:35:55 +08:00
DDDHuang
6b1da3bcc8
feat: republish support qos & retain placeholder
2022-06-09 14:55:07 +08:00
Zaiming (Stone) Shi
1acbe4f721
chore(emqx_rule_engine): bump app vsn and update appup
2022-06-06 23:19:39 +02:00
JianBo He
6c765b3e02
Merge tag 'v4.3.15-rc.3' into merge-main-v4.3-into-v4.4
2022-05-27 18:13:38 +08:00
JianBo He
bfa54523c6
chore: revert the needless appup.src changes by #8061
2022-05-27 16:15:00 +08:00
JianBo He
7ee5f90516
Merge tag 'v4.3.15-rc.3' into merge-main-v4.3-into-v4.4
2022-05-27 11:09:11 +08:00
DDDHuang
78e5aa30d7
fix: rule engine clear resource bad name & type
2022-05-27 11:00:03 +08:00
DDDHuang
64a455bf8e
fix: old date format style example & some code format
2022-05-26 16:06:04 +08:00
DDDHuang
e1ad8aab46
fix: date format funs & logger conf & appup & change log
2022-05-26 13:13:00 +08:00
DDDHuang
4fc5cb2817
fix: rule engine date format fun & date to timestamp
2022-05-26 12:57:53 +08:00
Shawn
ca842aa869
fix: merge main-v4.3 to main-v4.4
2022-05-23 11:23:27 +08:00
EMQ-YangM
7b38c66538
feat: add rule engine function float2str/2
2022-05-19 14:18:22 +08:00
Xinyu Liu
03c1efa439
Merge pull request #7977 from EMQ-YangM/hexstr2bin_support_half_byte
...
fix: hexstr2bin support half byte
2022-05-18 17:47:23 +08:00
EMQ-YangM
de1d8909c3
fix: hexstr2bin support half byte
2022-05-18 17:45:26 +08:00
DDDHuang
71a7d71f68
fix(rule_engine): bad status SUITE
2022-05-18 15:18:12 +08:00
DDDHuang
a67dff4568
fix(rule_engine): better function name for resource
2022-05-18 11:17:06 +08:00
DDDHuang
f3bef3c81c
fix(rule_engine): remove resource with clean alarms
2022-05-18 10:37:54 +08:00
DDDHuang
a5716318b6
fix: better code format
2022-05-18 09:59:35 +08:00
DDDHuang
eb5956316a
fix(emqx_rule_engine): export func for rpc
2022-05-17 11:27:55 +08:00
DDDHuang
86e8de4737
fix: merge main-4.3
2022-05-17 09:49:19 +08:00
JianBo He
442248f1a4
feat(rule-engine): add proto_name/proto_ver for $event/client_disconnected event
2022-05-16 14:30:41 +08:00
EMQ-YangM
be16dfa758
fix: update emqx_rule_engine.appup.src
2022-05-07 17:53:13 +08:00
EMQ-YangM
8558a62ee2
feat: add some date format functions
2022-05-07 17:04:45 +08:00
Zaiming (Stone) Shi
1de3ed8783
Merge remote-tracking branch 'origin/main-v4.3' into dev/v4.3.15
2022-04-22 07:45:00 +02:00
Zaiming (Stone) Shi
31b4be79f0
chore(emqx_rule_engine): update appup
2022-04-20 09:29:14 +02:00
Xinyu Liu
ade2716616
Merge pull request #7635 from terry-xiaoyu/test_resource_failed
...
fix(rule): test resource failed from all nodes
2022-04-16 02:18:44 +08:00
Shawn
898dc00f58
fix(rule): test resource failed from all nodes
2022-04-16 01:49:01 +08:00
JimMoen
6168745f90
chore: update copyright
2022-04-14 11:23:25 +08:00
Shawn
ae8f03a188
fix(rules): deny POST /rules with an existing Id
2022-04-13 23:16:29 +08:00
EMQ-YangM
0dc26ba483
fix: create new version
2022-04-13 15:01:47 +08:00
EMQ-YangM
6600de710a
fix: fix behavior of rule-engine when selection field does not exist
...
when the selection field does not exist, it should output field => undefined
2022-04-13 14:55:43 +08:00
EMQ-YangM
1886893fa1
fix: add zip_compress functions
2022-04-13 14:19:32 +08:00
DDDHuang
73ac4c1ff8
fix: random id ensure do not delete resource
2022-04-11 18:33:20 +08:00
EMQ-YangM
8530ecec4d
fix: delete a resource before updating it
2022-04-08 11:46:10 +08:00
EMQ-YangM
adf7d53ca5
fix: use concat replace flatten
2022-04-08 10:27:28 +08:00
EMQ-YangM
7606f55673
fix: update emqx_rule_engine.appup.src
2022-04-08 10:17:18 +08:00
EMQ-YangM
96b26bf4ce
fix: discard rpc call failed data
2022-04-08 10:12:40 +08:00
Yang Miao
16dc0d6555
Merge pull request #7536 from EMQ-YangM/reset_cluster_metrics
...
feat: impl reset cluster metrics
2022-04-07 11:31:49 +08:00
Yang Miao
75486efb11
Merge pull request #7534 from EMQ-YangM/dev/v4.3.14
...
fix: change rule_speed record type
2022-04-07 10:37:27 +08:00
EMQ-YangM
1c32b08b21
feat: impl reset cluster metrics
2022-04-07 10:32:58 +08:00
EMQ-YangM
0e02e8df9d
fix: change rule_speed record type
2022-04-07 09:50:31 +08:00
Thales Macedo Garitezi
a1705f5653
fix: flaky test
2022-04-06 09:11:09 -03:00
Georgy Sychev
1a715c8708
feat(emqx_dashboard): subsciption to update password
...
emqx_dashboard restarted in ekka hook
Closes #3155
2022-04-05 10:40:09 +02:00
Zaiming (Stone) Shi
5b58eaa203
refactor(emqx_rule_engine): return not raise error for known reasons
2022-04-04 19:10:52 +02:00
Zaiming (Stone) Shi
67ce53b5fc
fix(appup): re-generated emqx_rule_engine.appup.src
2022-04-02 23:25:36 +02:00
Zaiming (Stone) Shi
a54813dd69
fix(appup): re-generate appup from 4.3.13
2022-04-02 23:00:41 +02:00
EMQ-YangM
299c369d80
feat: enhanced rule engine error handling when json parsing error
2022-04-02 16:24:07 +08:00
Xinyu Liu
b84ef11935
Merge branch 'dev/v4.3.14' into dev/v4.3.14
2022-04-01 09:32:42 +08:00
Xinyu Liu
3cc0bb8284
Merge branch 'dev/v4.3.14' into fix_patter_match_v4.3
2022-04-01 09:14:34 +08:00
EMQ-YangM
326634c287
feat: impl api PUT /rules/{id}/reset_metrics
2022-03-31 18:00:57 +08:00
EMQ-YangM
510e4d31e4
fix: load_module emqx_rule_events
2022-03-31 13:48:12 +08:00
EMQ-YangM
cead8c9056
fix: use masp:get/3 to avoid crash after match failure
2022-03-30 09:44:06 +08:00
DDDHuang
6ab0934674
fix(rule): connection test when creating a resource
2022-03-30 09:23:51 +08:00
zhongwencool
4ee586a738
fix: appup.src
2022-03-29 17:12:35 +08:00
Chris
a1a37bcbee
feat: Add mongo_date function to support saving timestamp as MongoDB Date object
2022-03-25 17:43:32 +01:00
JianBo He
b76372e621
chore: remove duplicated emqx_rule_funcs in appup.src
2022-03-23 19:29:58 +08:00
Xinyu Liu
0d55b9242d
Merge branch 'main-v4.3' into resource_get_status_timeout
2022-03-23 17:59:59 +08:00
Shawn
e8c7388aa4
chore: update appup file for emqx_rule_engine
2022-03-23 16:21:27 +08:00
zhongwencool
b993595c6d
fix: add emqx_rule_funcs to appup.src
2022-03-23 15:42:53 +08:00
Shawn
5275e6a30f
fix(rule): get the cached status when calling emqx_rule_engine:get_resource_status/1
2022-03-23 15:33:50 +08:00
EMQ-YangM
62eff94249
feat(emqx_rule_funcs): add functions gzip, gunzip, zip, unzip
2022-03-22 15:16:31 +08:00
Shawn
5823751d7d
chore: bump emqx_rule_engine to 4.3.9
2022-03-18 18:28:30 +08:00
Shawn
81ae2be760
fix(rules): enlarge precisions of floats to maximum 17 decimal places.
...
When printing floats to strings, we have to define a small decimal
limits to avoid print a too long and "inaccurate" float number:
```
2> float_to_binary(0.3).
<<"2.99999999999999988898e-01">>
```
This fix sets precision of floats to 17 digits after the decimal point.
This precision is larger than precision of most `double` data type used by
databases(14 digits for mysql and 15 digits for pgsql).
2022-03-18 15:42:01 +08:00
Zaiming (Stone) Shi
cca9e52c9a
chore(appup): add missing appup instructions
2022-03-01 11:41:52 +01:00
Thales Macedo Garitezi
cf1cc7e9db
chore(appup): update appup files
2022-02-24 17:14:47 -03:00
Zaiming (Stone) Shi
43c900bb5a
chore: rename more descriptive EQM X to EMQX
2022-02-22 11:16:38 +01:00
Zaiming (Stone) Shi
a5f6e94467
docs: EMQ X -> EMQX
2022-02-15 22:12:46 +01:00
Zaiming (Stone) Shi
e09e5673eb
docs(README): EMQ X -> EMQX
2022-02-15 16:15:25 +01:00
Thales Macedo Garitezi
fdef292ef7
fix(appup): rm redundant `load_module` instruction after `update`
2022-02-10 09:31:36 -03:00
Thales Macedo Garitezi
e053700441
style: please elvis checks
2022-02-09 11:02:05 -03:00
Thales Macedo Garitezi
5e223ac64f
chore(appup): update appup files
2022-02-09 09:54:39 -03:00
Thales Macedo Garitezi
b968d4c416
fix(ctl): fix formatting when printing messages without arguments (4.3)
...
Without passing an empty argument list to `emqx_ctl:print`, formatting
instructions like `~n` are being printed literally.
```
Ignore.~nJoin the cluster successfully.~nCluster status: #{running_nodes =>
['emqx@emqx-0.int.thalesmg','emqx@emqx-1.int.thalesmg',
'emqx@emqx-2.int.thalesmg','emqx@emqx-3.int.thalesmg',
'emqx@emqx-4.int.thalesmg'],
stopped_nodes => []}
```
2022-02-09 09:36:27 -03:00
EMQ-YangM
03d240c59e
fix(emqx_rule_engine_metrics): fix code_change vsn value
2022-01-24 11:14:31 +08:00
Shawn
2d00373e49
fix(appup): update appup file for emqx_rule_engine_api
2022-01-19 19:51:25 +08:00
Shawn
70c6ac4e0d
fix(rule): deny POST rules or resources with empty ids
2022-01-19 19:22:25 +08:00
Shawn
eec566fe40
fix(rule): restore the metrics for actions in cluster
2022-01-14 10:33:32 +08:00
Shawn
4abcab8d52
fix(appup): update appup files for emqx,emqx_sn,rule_engine
2022-01-13 18:37:22 +08:00
Shawn
9f7f5070b2
fix(channel): update the calls to emqx_session APIs
2022-01-13 13:33:27 +08:00
Shawn
217acc0154
feat(rule): add new event 'delivery_dropped'
2022-01-12 20:11:08 +08:00
EMQ-YangM
da8cd5d103
fix(rule_engine_metrics): fxi string:to_integer pattern match error
2022-01-11 22:09:38 -08:00
EMQ-YangM
de58c8e7bc
refactor(rule_engine_metrics): refactor code_change
2022-01-11 22:09:38 -08:00
EMQ-YangM
7605fa5e64
fix(rule_engine_metric): remove unused metrics 'overall_metrics'
2022-01-11 22:09:38 -08:00
Shawn
82c6eaa3aa
Merge branch 'main-v4.3' into main4.3
2022-01-10 12:31:12 +08:00
EMQ-YangM
3956eaddd7
fix(rule_engine_metrics): add more rulge_engine version to emqx_rule_engine.appup.src
2022-01-09 19:27:49 -08:00
Shawn
fbeba39f0d
fix(rule): compare to null variables should return false
2022-01-06 20:36:01 +08:00
Shawn
b7bcb37eab
fix(rule): restore metrics for actions
2022-01-06 20:18:05 +08:00
EMQ-YangM
be81c65eda
feat(rule_engine_metics): add hot upgrade feat
2022-01-06 00:47:17 -08:00
EMQ-YangM
2074dd63f9
test(rule_engine_metrics): add more test
2022-01-05 21:11:52 -08:00
EMQ-YangM
1211c658fc
fix(emqx_rule_engine): change vsn to 4.3.7
2022-01-05 19:18:16 -08:00
EMQ-YangM
fae49ad228
fix(rule_engine_metrics): remove more space
2022-01-05 19:03:28 -08:00
EMQ-YangM
d7a3ade200
fix(rule_engine_matrics): remove more space
2022-01-05 19:00:59 -08:00
EMQ-YangM
2608798826
fix(rule_engine_metrics): fix RuleID reference
2022-01-05 18:56:34 -08:00
EMQ-YangM
c214af2ac0
fix(rule_engine_metics): centralized statistics exception
2022-01-05 18:51:28 -08:00
EMQ-YangM
e5993c9f72
refactor(rule_engine_metrics): remove function 'message()'
2022-01-05 02:08:40 -08:00
EMQ-YangM
c2870b3322
test(rule_engint_metrics): add test for 'FOREACH'
2022-01-05 01:57:18 -08:00
EMQ-YangM
88913a9144
test(rule_engine_metrics): add test 't_metrics'
2022-01-05 01:20:53 -08:00
EMQ-YangM
a5a8aa3b6d
feat(rule_metrics): add more metrics to the rule engine
2022-01-05 00:20:06 -08:00
Zaiming Shi
f1f2e51c99
fix: update appup
2021-11-08 16:17:54 +01:00
Turtle
9f843d618d
fix(rule): fix rpc timeout extend the RPC timeout interval
2021-09-15 08:19:22 +08:00
Turtle
3ad0678892
fix(rule): fix edit rule fail in the cluster
2021-09-14 14:54:24 +08:00
Turtle
ac0639f6b1
fix(actions): fix republish actions payload is null
2021-08-04 14:39:19 +08:00
Turtle
8fb9170df8
fix(rule-engine): fix rule status is not available after the emqx restart
2021-08-03 17:31:43 +08:00
Shawn
6724e59e7a
fix(appup): relup for emqx_rule_registry failed
2021-06-21 12:18:39 +08:00
Shawn
5962c9c83c
feat(rules): remove stats update from rule_engine_registry ( #5029 )
2021-06-19 17:02:43 +08:00
Shawn
c0367fb8dd
Delete resource failed when searching dependent rules ( #4996 )
2021-06-17 16:45:44 +08:00
k32
1e562d4bc6
chore(rule_engine): Don't import alias/1 BIF
...
Fixes : #4847
2021-05-22 01:40:07 +02:00
Shawn
4cd056cab5
fix(rule_engine): update status to false when refresh resource failed ( #4821 )
...
* fix(rule_engine): update status to false when refresh resource failed
* fix(dialyzer): ignore import_modules/1 created fun has no local return
* fix(appup): update appup for rule engine
2021-05-17 17:59:01 +08:00
Zaiming Shi
ded494f544
fix(emqx_rule_engine): add appup
2021-05-11 14:25:46 +02:00
Turtle
80ef076cee
feat(rule_engine): rule sql add null function
2021-05-08 17:15:07 +08:00
Zaiming Shi
fbe15859f5
fix(emqx_rule_utils): http connectivity check ipv6 support
2021-04-28 10:43:36 +02:00
Shawn
bea28d887c
fix(rule_engine): refresh rules and then re-enable it
2021-04-27 15:45:25 +08:00