salt.thorium.reg
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
salt.thorium.reg.clear(name)
-
Delete the namespace from the register
USAGE:
deletens: reg.delete: - name: myregister
salt.thorium.reg.delete(name)
-
Add the specified values to the named list
If
stamp
is True, then the timestamp from the event will also be added ifprune
is set to an integer higher than0
, then only the lastprune
values will be kept in the list.USAGE:
foo: reg.list: - add: bar - match: my/custom/event - stamp: True
salt.thorium.reg.list_(name, add, match, stamp=False, prune=0)
-
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
salt.thorium.reg.mean(name, add, match)
-
Add a value to the named set
USAGE:
foo: reg.set: - add: bar - match: my/custom/event
salt.thorium.reg.set_(name, add, match)
© 2021 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltproject.io/en/latest/ref/thorium/all/salt.thorium.reg.html