New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(ruleengine): port random && uuid_v4 functions from v4 #11166
Conversation
8cd9107
to
4117ead
Compare
4117ead
to
ae3ebfe
Compare
@@ -1186,3 +1205,6 @@ convert_timestamp(MillisecondsTimestamp) -> | |||
Secs = MicroTimestamp div 1000_000 - MegaSecs * 1000_000, | |||
MicroSecs = MicroTimestamp rem 1000_000, | |||
{MegaSecs, Secs, MicroSecs}. | |||
|
|||
uuid_str(UUID, DisplyOpt) -> | |||
uuid:uuid_to_string(UUID, DisplyOpt). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uuid:uuid_to_string(UUID, DisplyOpt). | |
uuid:uuid_to_string(UUID, DisplayOpt). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will fix it in other PR
@@ -1186,3 +1205,6 @@ convert_timestamp(MillisecondsTimestamp) -> | |||
Secs = MicroTimestamp div 1000_000 - MegaSecs * 1000_000, | |||
MicroSecs = MicroTimestamp rem 1000_000, | |||
{MegaSecs, Secs, MicroSecs}. | |||
|
|||
uuid_str(UUID, DisplyOpt) -> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
uuid_str(UUID, DisplyOpt) -> | |
uuid_str(UUID, DisplayOpt) -> |
Fixes EMQX-10443
Summary
馃 Generated by Copilot at b75801b
Added new rule engine functions for generating random values and UUIDs. Updated the
emqx_rule_engine
dependency list to include theuuid
application.PR Checklist
Please convert it to a draft if any of the following conditions are not met. Reviewers may skip over until all the items are checked:
changes/{ce,ee}/(feat|perf|fix)-<PR-id>.en.md
filesChecklist for CI (.github/workflows) changes
changes/
dir for user-facing artifacts update