Used to manage the thorium register. The thorium register is where compound values are stored and computed, such as averages etc.
salt.thorium.reg.
list
(name, add, match, stamp=False)¶Add the specified values to the named list
If stamp
is True, then the timestamp from the event will also be added
USAGE:
code-block:: yaml
- foo:
- reg.list:
- add: bar
- match: my/custom/event
- stamp: True
salt.thorium.reg.
mean
(name, add, match)¶Accept a numeric value from the matched events and store a running average of the values in the given register. If the specified value is not numeric it will be skipped
salt.thorium.reg.
set
(name, add, match)¶Add a value to the named set