def METHOD_NAME(self, job):
    if not job.passed:
        return PerfInterval(0, 0, "cpu_percent", time.time())
    else:
        cpu_percent = job.result["data"]["end"]["cpu_utilization_percent"]["host_total"]
        job_start = job.result["data"]["start"]["timestamp"]["timesecs"]
        duration = job.result["data"]["start"]["test_start"]["duration"]
        return PerfInterval(cpu_percent*duration, duration, "cpu_percent", job_start)