private void getStatsInfo(ClientStatsItemSet statsSet,
            boolean resetValue, StringBuilder strBuff) {
        strBuff.append("{\"").append(statsSet.resetTime.getFullName())
                .append("\":\"").append(statsSet.resetTime.getStrSinceTime())
                .append("\",\"probe_time\":\"")
                .append(DateTimeConvertUtils.ms2yyyyMMddHHmmss(System.currentTimeMillis()))
                .append("\",");
        statsSet.totalTrafficStats.getValue(strBuff, resetValue);
        strBuff.append(",");
        statsSet.getTopicDetailInfo(strBuff, resetValue);
        if (this.statsConfig.getStatsLevel() != StatsLevel.SIMPLEST) {
            strBuff.append(",");
            if (resetValue) {
                statsSet.msgCallDltStats.snapShort(strBuff, false);
                if (!isProducer) {
                    strBuff.append(",");
                    statsSet.csmLatencyStats.snapShort(strBuff, false);
                    strBuff.append(",");
                    statsSet.confirmDltStats.snapShort(strBuff, false);
                }
            } else {
                statsSet.msgCallDltStats.getValue(strBuff, false);
                if (!isProducer) {
                    strBuff.append(",");
                    statsSet.csmLatencyStats.getValue(strBuff, false);
                    strBuff.append(",");
                    statsSet.confirmDltStats.getValue(strBuff, false);
                }
            }
            strBuff.append(",");
            statsSet.getErrorRspInfo(strBuff, resetValue);
            strBuff.append(",");
            statsSet.getStatusInfo(strBuff, resetValue);
            if (this.statsConfig.getStatsLevel() == StatsLevel.FULL) {
                strBuff.append(",");
                statsSet.getPartDetailsInfo(strBuff, isProducer, resetValue);
            }
        }
        strBuff.append("}");
    }
Get current data encapsulated by Json format

@param statsSet     the statistics to be printed
@param resetValue   whether to reset the current data
@param strBuff      string buffer
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/common/ClientStatsInfo.java