public OutlierDetectionBuilder counterSlidingWindow(Duration counterSlidingWindow) {
        requireNonNull(counterSlidingWindow, "counterSlidingWindow");
        checkArgument(!counterSlidingWindow.isNegative() && !counterSlidingWindow.isZero(),
                      "counterSlidingWindow: %s (expected: > 0)", counterSlidingWindow);
        this.counterSlidingWindow = counterSlidingWindow;
        return this;
    }
Sets the time length of sliding window to accumulate the count of events.
Defaults to {@value #DEFAULT_COUNTER_SLIDING_WINDOW_SECONDS} seconds if unspecified.
core/src/main/java/com/linecorp/armeria/common/outlier/OutlierDetectionBuilder.java