add heartbeat api for health checking