Detailed Description
Static Public Member Functions | |
| static | formatValue (item) |
| Format a single value for human-readable output. | |
| static | getValueHelper (elementData, propertyName) |
| Helper to get a human readable value of an aspect property value. | |
Member Function Documentation
◆ formatValue()
|
inlinestatic |
Format a single value for human-readable output.
Weighted values (objects with 'value' and 'weight' entries) are formatted as 'value' when the weight is 1, or 'value (xx.xx%)' otherwise.
- Parameters
-
{*} item value to format
- Returns
- {string} human readable form of the value
◆ getValueHelper()
|
inlinestatic |
Helper to get a human readable value of an aspect property value.
IP intelligence values are commonly lists of weighted values, which are formatted as a comma separated list with weights where the weight is not 1.
- Parameters
-
{object} elementData the element data from a flow data {string} propertyName name of the property to get
- Returns
- {string} human readable value of the property
