Currently when using `unit` parameter in the `rate` aggregator in time series mode (meaning the `rate` aggregation is defined as a child aggregation of `time_series` aggregation) then this parameter is ignored. We should investigate whether this parameter can be supported for computing rate in time series mode.
server/src/main/java/org/elasticsearch/TransportVersion.java
}
    public boolean after(TransportVersion version) {
        return version.id < id;
    }
    public boolean onOrAfter(TransportVersion version) {
        return version.id <= id;
    }
    public boolean before(TransportVersion version) {
        return version.id > id;
    }
    public boolean onOrBefore(TransportVersion version) {
        return version.id >= id;
    }
    public boolean between(TransportVersion lowerInclusive, TransportVersion upperExclusive) {
        if (upperExclusive.onOrBefore(lowerInclusive)) throw new IllegalArgumentException();
        return onOrAfter(lowerInclusive) && before(upperExclusive);
    }
    public static TransportVersion fromString(String str) {
        return TransportVersion.fromId(Integer.parseInt(str));
    }
    @Override
    public int compareTo(TransportVersion other) {
        return Integer.compare(this.id, other.id);
    }
    @Override
    public String toString() {
        return Integer.toString(id);
    }
}