@Override
    public int compareTo(final Level other) {
        return intLevel < other.intLevel ? -1 : (intLevel > other.intLevel ? 1 : 0);
    }
Return the Level associated with the name.

@param name The name of the Level to return.
@return The Level.
@throws NullPointerException     if the Level name is {@code null}.
@throws IllegalArgumentException if the Level name is not registered.
modules/siddhi-core/src/main/java/io/siddhi/core/util/statistics/metrics/Level.java