{
"id": "numerify",
"schema": {
"title": "",
"type": "object",
"properties": {
"depth": {
"type": "integer",
"title": "Depth",
"description": "Depth to which the Numerify Function will search within a nested event. Depth greater than 5 (the default) could decrease performance.",
"default": 5,
"thresholdWarning": {
"max": {
"threshold": 5,
"message": "Caution: High depth values could decrease performance"
}
},
"minimum": 0,
"maximum": 10
},
"ignoreFields": {
"title": "Ignore fields",
"description": "Fields to NOT numerify. Takes precedence over 'Include expression' when set. Supports wildcards. A '!' before field name(s) means: numerify all fields EXCEPT these. For syntax details, see [Wildcard Lists](https://docs.cribl.io/stream/introduction-reference/#wildcard-lists).",
"type": "array",
"items": {
"type": "string",
"description": "Field to ignore"
}
},
"filterExpr": {
"title": "Include expression",
"description": "Optional JavaScript expression to determine whether a field should be numerified. If left blank, all fields will be numerified. Use the 'name' and 'value' global variables to access fields' names/values. Examples: `value != null`, `name=='fieldname'`. You can access other fields' values via `__e.<fieldName>`.",
"type": "string",
"jsExpression": true
},
"format": {
"title": "Format",
"type": "string",
"enum": ["none", "fix", "floor", "ceil"],
"enumNames": ["None", "Fix", "Floor", "Ceil"],
"default": "none"
}
},
"dependencies": {
"format": {
"oneOf": [
{
"properties": {
"format": {
"enum": ["fix"]
},
"digits": {
"type": "number",
"title": "Digits",
"description": "Number of digits after the decimal point, between 0 and 20. If left blank, defaults to 2.",
"default": 2,
"minimum": 0,
"maximum": 20
}
}
},
{
"properties": {
"format": {
"enum": ["none", "floor", "ceil"]
}
}
}
]
}
}
}
}