update heartbeat schema to include error and status