Is it possible to include alert duration in the Recovery alert?

Hello All,

Is it possible to include alert duration (total time service was unreachable/host was down) in the Recovery alert ? I’m looking for something like this, the below sample is from new relic.

image

Thanks