I’m trying to figure out if there’s a way to determine the duration of a resolved alert. I know how to see when an alert started and ended using .StartsAt
and .EndsAt
, but I’m not sure how to calculate the duration in between.
Is there a method I can use to subtract .StartsAt
from .EndsAt
to get the delta? Or is there another way to determine the duration of a resolved alert?
Any help or advice would be greatly appreciated. Thank you!