Fixed api impl to match new fog impl.
updated for heartbeat event.