public void getPartDetailsInfo(StringBuilder strBuff,
                boolean isProducer,
                boolean resetValue) {
            int totalCnt = 0;
            strBuff.append("\"part_details\":{");
            for (PartitionStatsItemSet partStatsSet : partDltStatsMap.values()) {
                if (partStatsSet == null) {
                    continue;
                }
                if (totalCnt++ > 0) {
                    strBuff.append(",");
                }
                partStatsSet.getValue(strBuff, isProducer, false);
            }
            strBuff.append("}");
            if (resetValue) {
                partDltStatsMap.clear();
            }
        }
Get traffic statistics by partition key

@param strBuff      string buffer
@param isProducer   whether producer role
@param resetValue   whether to reset the current data
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/common/ClientStatsInfo.java