collect data from heartbeat and alarm