Used to manage the thorium register. The thorium register is where compound values are stored and computed, such as averages etc.
Clear the namespace from the register
USAGE:
clearns:
reg.clear:
- name: myregister
Delete the namespace from the register
USAGE:
deletens:
reg.delete:
- name: myregister
Add the specified values to the named list
If stamp
is True, then the timestamp from the event will also be added
if prune
is set to an integer higher than 0
, then only the last
prune
values will be kept in the list.
USAGE:
foo:
reg.list:
- add: bar
- match: my/custom/event
- stamp: True
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
USAGE:
foo:
reg.mean:
- add: data_field
- match: my/custom/event
Add a value to the named set
USAGE:
foo:
reg.set:
- add: bar
- match: my/custom/event