CDAP-735: Update visualization of Spark job metrics

I think you want an interval https://developer.mozilla.org/en-US/docs/Web/API/WindowTimers.setInterval. 
self.__updateMetricsInterval = setInterval(function () {...}, self.__METRICS_UPDATE_TIMEOUT);