private int getIndex(int origIndex) {
        return Math.abs(origIndex % 2);
    }
Gets the metric block index based on the specified value.

@param origIndex    the specified value
@return the metric block index
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/stats/TrafficStatsService.java