
The slave heartbeat count and period are collected from the SHOW ALL SLAVES STATUS output. This, in addition to the relay log position, is used to calculate the point in time when a slave has last interacted with the master. By using this timestamp, the monitor can enforce a minimum "timeout" for the master before a failover is performed.