CDAP-735: Update visualization of Spark job metrics

you're returning something, this shouldn't be an inline function