private static double getFailureRate(int numCompleted, int numFailed) {
    int num = numCompleted + numFailed;

    if (num == 0) {
      return 0d;
    }

    return numFailed * 1.0d / num;
  }
This class represents information contained in a job runtime process.
app/com/linkedin/drelephant/spark/legacydata/SparkJobProgressData.java