hertzbeat
hertzbeat copied to clipboard
[Question] Can the 'Remaining Days' field in SSL certificate monitoring be rounded down to an integer?
Question
For instance, I want to get a reminder when there are 30 days left for a certain certificate. But because the 'Remaining Days' field is of numeric type, in the threshold I can only use days_remaining == 30. However, but it has decimal points like '30.8765', so the threshold won't be triggered.
hi, you can try this
equals(toInteger(days_remaining), 30)
hi, you can try this
equals(toInteger(days_remaining), 30)
That is works, thx! Just the threshold details page looks a little bit odd, because 'equals' & 'toInteger' didn't for numeric type. Maybe 'equals' & 'toInteger' can be added to the selector in the next version?
You can learn about Apache Jexl, or refer