Used to manage the thorium register. The thorium register is where compound values are stored and computed, such as averages etc.
New in version 2016.11.0.
depends: | statistics PyPi module |
---|
Adds together the num
most recent values. Requires a list.
USAGE:
foo: calc.add: - name: myregentry - num: 5
Perform a calculation on the num
most recent values. Requires a list. Valid values for oper
are:
num
values togethernum
values togethernum
valuesnum
valuesnum
valuesnum
valuesnum
valuesnum
valuesUSAGE:
foo: calc.calc: - name: myregentry - num: 5 - oper: mean
Calculates the mean of the num
most recent values. Requires a list.
USAGE:
foo: calc.mean: - name: myregentry - num: 5
Calculates the mean of the num
most recent values. Requires a list.
USAGE:
foo: calc.median: - name: myregentry - num: 5
Calculates the grouped mean of the num
most recent values. Requires a list.
USAGE:
foo: calc.median_grouped: - name: myregentry - num: 5
Calculates the high mean of the num
most recent values. Requires a list.
USAGE:
foo: calc.median_high: - name: myregentry - num: 5
Calculates the low mean of the num
most recent values. Requires a list.
USAGE:
foo: calc.median_low: - name: myregentry - num: 5
Calculates the mode of the num
most recent values. Requires a list.
USAGE:
foo: calc.mode: - name: myregentry - num: 5
Multiplies together the num
most recent values. Requires a list.
USAGE:
foo: calc.mul: - name: myregentry - num: 5
© 2019 SaltStack.
Licensed under the Apache License, Version 2.0.
https://docs.saltstack.com/en/latest/ref/thorium/all/salt.thorium.calc.html