I am currently testing a REST Custom Sensor JSON Sensor where I would like to monitor a REST API that should give a state about different services.
For that I created a custom template for this specific page :
"value": lookup($.service.current_incident_type, "minor", "scheduled", "major"),
My issue : The state of the service communicated on this REST API is a string "major", "minor", "scheduled" OR null
PRTG does display following on the sensor : " Could no evaluate channel value of Incident: expected type string for parameter 0 but got <nil>."
Is there a way to handle null value in a lookup file ?
Thank you in advance for your support !