In the json data I collect from a rest api there are various string fields, e.g:
“healthStatus”: “UP”,
“status”: “SUCCEEDED”,
“status”: “OK”,
etc, for which I’d like to fire events if e.g. healtStatus changes to DOWN.
The normal mechanism to get an event from a collected value as I undersand it is to define a threshold. However, reading the source it seems that is only possible for numeric values as all ThresholdEvaluator instances only works with values as double. Ever for an expression the data that is ingested to the expression evaluator have only datatype double.
Is this correct? Is there another way to trigger an event from a string value in data fetched by collectd?