Downtime duration to e-mail notification

Downtime duration to e-mail notification

Hi ALL!
OpManager can sent email if monitored device is UP.
Ho i can add to this email ( message about Device Active and Responding) durations of downtime ??
Look at mail form OpManager 


and email from other monitoring system:


How to do similar in OpManager notifications ??