blueflood-core/src/main/java/com/rackspacecloud/blueflood/rollup/Granularity.java
public static Granularity granularityFromPointsInInterval(String tenantid, long from, long to, int points) {
        return granularityFromPointsInInterval(tenantid, from, to, points, GET_BY_POINTS_SELECTION_ALGORITHM, GET_BY_POINTS_ASSUME_INTERVAL, DEFAULT_TTL_COMPARISON_SOURCE);
    }
public static Granularity granularityFromPointsInInterval(String tenantid, long from, long to, int points) {
        return granularityFromPointsInInterval(tenantid, from, to, points, GET_BY_POINTS_SELECTION_ALGORITHM, GET_BY_POINTS_ASSUME_INTERVAL, DEFAULT_TTL_COMPARISON_SOURCE);
    }
Return granularity that maps most closely to requested number of points,
using the algorithm specified in the
{@code GET_BY_POINTS_SELECTION_ALGORITHM} config value. See
{@link #granularityFromPointsInInterval(String, long, long, int, String, long)}.

@param from beginning of interval (millis)
@param to end of interval (millis)
@param points count of desired data points
@return