Sum metric
Bases: Metric
Compute the (weighted) sum of the given values.
For example, if values is [1, 3, 5, 7] then their sum is 16.
This metric creates one variable, total.
This is ultimately returned as the sum value.
Compilation example:
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
str
|
(Optional) string name of the metric instance. |
'sum'
|
in_mask
|
list
|
(Optional) list of keys to keep to compute the metric. |
None
|
out_mask
|
list
|
(Optional) list of keys to remove to compute the metric. |
None
|
in_mask_pattern
|
str
|
(Optional) Regex pattern; fields whose names match
are kept (combined with |
None
|
out_mask_pattern
|
str
|
(Optional) Regex pattern; fields whose names match
are dropped (combined with |
None
|
Example: