Status Duration Calculation in Alerts 2.0

In Alerts 2.0 status (CRITICAL or WARNING) duration is shown in the recovery alerts (see Alerts in Alerts 2.0) and Alerts History, calculated as:

  • If the alert rule (see Alert Rules in Alerts 2.0) is set on the monitor entering WARNING state:
    – The WARNING status duration is calculated as time difference between the moment monitor’s state is changed to WARNING (a WARNING severity level threshold set in the monitor is violated) until the moment when the monitor’s state is changed to RECOVERY (no WARNING or CRITICAL level threshold in the monitor is violated).
  • If the alert rule is set on the monitor entering CRITICAL state:
    – The CRITICAL status duration is calculated as time difference between the moment monitor’s status is changed to CRITICAL (a CRITICAL severity level threshold set in the monitor is violated) until the moment when the monitor’s state is changed to WARNING (a WARNING level threshold is violated in the monitor, but no CRITICAL level threshold is violated) or RECOVERY (no WARNING or CRITICAL level threshold in the monitor is violated).
    – If the monitor enters from CRITICAL to WARNING state, the CRITICAL status duration is calculated as time difference between the monitor entering CRITICAL and WARNING states.
    – If the monitor enters from CRITICAL to OK state without entering WARNING state, downtime is calculated as time difference between the CRITICAL and RECOVERY states.
  • If the alert rule is a legacy rule, set on a threshold defined in the monitor (see Thresholds):
    – Downtime is calculated as time difference between the moment the threshold is violated until the moment the threshold is recovered.