Metrics refactor

Updated the script for generating the status graph dataset as the API return object changed slightly