public static String getAlertLevelAsString(final int intLevel) {
    if (intLevel == Alert.SEVERE) {
      return "severe";
    } else if (intLevel == Alert.ERROR) {
      return "error";
    } else if (intLevel == Alert.WARNING) {
      return "warning";
    } else if (intLevel == Alert.OFF) {
      return "none";
    }

    throw new IllegalArgumentException("Unable to find an alert level with int value: " + intLevel);
  }
Converts the int alert level to a string representation.

@param intLevel int alert level to convert
@return A string representation of the alert level
geode-core/src/main/java/org/apache/geode/management/internal/AlertDetails.java