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.
x-pack/plugin/analytics/src/test/java/org/elasticsearch/xpack/analytics/rate/InternalResetTrackingRateTests.java
}
    private static InternalResetTrackingRate rate(double startValue, double endValue, long startTime, long endTime, double resetComp) {
        return new InternalResetTrackingRate("n", null, null, startValue, endValue, startTime, endTime, resetComp);
    }
    public void testReduction() {
        List<InternalAggregation> rates = List.of(
            rate(0, 10, 1000, 2000, 0),
            rate(10, 20, 2000, 3000, 0),
            rate(20, 5, 3000, 4000, 25), 
            rate(5, 15, 4000, 5000, 0),
            rate(0, 10, 5000, 6000, 0)  
        );
        InternalAggregation reduced = rates.get(0).reduce(rates, null);
        assertThat(reduced, instanceOf(Rate.class));
        assertThat(((Rate) reduced).getValue(), equalTo(0.01));
    }
    @Override
    protected void assertReduced(InternalResetTrackingRate reduced, List<InternalResetTrackingRate> inputs) {
        for (InternalResetTrackingRate input : inputs) {
            assertEquals(0.01f, input.getValue(), 0.001);
        }
        assertEquals(0.01f, reduced.getValue(), 0.001);
    }
    
    @Override
    protected boolean supportsOutOfOrderReduce() {
        return false;
    }
    @Override
    protected BuilderAndToReduce<InternalResetTrackingRate> randomResultsToReduce(String name, int size) {