Link availability

A history of events is stored for each link.

Two events are of particular interest for computing availability:

Each event has a timestamp to track the precise moment of its occurrence.

Guardian computes the total downtime of a link by taking into consideration the history of events within a finite time window. Then, it sums the time spans of all events starting with a DOWN event and ending with an UP event. All links are considered active by default. Therefore, the availability of the link is 100% minus the percentage of the total downtime.