Hi tims,
I have the same problem as Scott , trying to change background color by condition and it doesnt work. Here is the code snipet:
filters
| essql
query="SELECT
count("eai_sts_proc") AS cnt
FROM
"logit-exampleindex-*"
WHERE
app_name = 'EXAMPLEAPP'
AND
command = 'EXAMPLESERVICE'
AND
eai_sts_proc= 'OK'
AND
"@timestamp" > NOW() - INTERVAL 5 MINUTES"
| math "cnt"
| metric ""
metricFont={font family="'Open Sans', Helvetica, Arial, sans-serif" size=24 align="center" color="#000000" weight="bold" underline=false italic=false}
labelFont={font family="'Open Sans', Helvetica, Arial, sans-serif" size=14 align="center" color="#000000" weight="normal" underline=false italic=false}
| render
containerStyle={containerStyle backgroundColor={if {lt 1} then="red" else="green"}}
it is always else and showing a green background
Thanks