Hi @praveenmayantha,
Welcome to the community support forums !!
We have 2 great articles which describe the alerting and templating.
The 1st one is written by a community user on this post
The second one is written by one of our team member in the following post which is still a very active post to this date.
I hope this helps.