You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rec that is passed to any given rule function is an ordinary dict that allows for lookups, etc to perform alerting logic. We have built a lot of features to make it easier to do things in rules that would otherwise be repetitive over time.
Desired Change
Implement a class for records aka Record that would subclass the basic dict. This would enable backward compatibility and allow for implementing local methods on the Record to do away with the need for importing methods from helpers.
We could also leverage the new class for doing stuff like monitoring which keys have been used by a rule for "alerting" and then programmatically cull down the actual values from the record that resulted in an alert to simplify the output for the user.
The text was updated successfully, but these errors were encountered:
Background
The
rec
that is passed to any given rule function is an ordinarydict
that allows for lookups, etc to perform alerting logic. We have built a lot of features to make it easier to do things in rules that would otherwise be repetitive over time.Desired Change
Implement a class for records aka
Record
that would subclass the basicdict
. This would enable backward compatibility and allow for implementing local methods on theRecord
to do away with the need for importing methods fromhelpers
.We could also leverage the new class for doing stuff like monitoring which keys have been used by a rule for "alerting" and then programmatically cull down the actual values from the record that resulted in an alert to simplify the output for the user.
The text was updated successfully, but these errors were encountered: