Format date in email alert


(Jon M) #1

Hi,

I was wondering if it is possible to add the date of check_result.triggeredAt in the subject of the message.
I would need it in format “yyyy.MM.dd”.

Or maybe to have the first 10 chars of the check_result.triggeredAt

Thank you in advance

Jon


(Jochen) #2

The template language used by the email alarm callback doesn’t support modifying the template variables.


(Jon M) #3

Hi,
Thank you very much for the quick response. If I undestand correctly, it is only possible to display the variables as they are, right?


(Jochen) #4

Yes, that’s correct. You can display check_result.triggeredAt as is, but it’s not possible to apply some filters or convert it.


(system) #5

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.