public static AlertLevel forSeverity(int severity) {
    switch (severity) {
      case Alert.WARNING:
        return AlertLevel.WARNING;
      case Alert.ERROR:
        return AlertLevel.ERROR;
      case Alert.SEVERE:
        return AlertLevel.SEVERE;
      case Alert.OFF:
        return AlertLevel.OFF;
      default:
        throw new IllegalArgumentException(String.format("Unknown alert severity: %s",
            severity));
    }
  }
Returns the <code>AlertLevel</code> for the given severity

@param severity the severity of the <code>AlertLevel</code> to return
@return the <code>AlertLevel</code> with the given severity
@throws IllegalArgumentException If there is no alert level with the given
        <code>severity</code>
geode-core/src/main/java/org/apache/geode/admin/AlertLevel.java