private static void getStatsValue(ServiceStatsSet statsSet,
            boolean resetValue,
            StringBuilder strBuff) {
        strBuff.append("{\"").append(statsSet.lstResetTime.getFullName())
                .append("\":\"").append(statsSet.lstResetTime.getStrSinceTime())
                .append("\",\"detailStatsClosed\":").append(detailStatsClosed);
        if (resetValue) {
            strBuff.append(",\"").append(statsSet.fileIOExcStats.getFullName())
                    .append("\":").append(statsSet.fileIOExcStats.getAndResetValue())
                    .append(",\"").append(statsSet.zkExcStats.getFullName())
                    .append("\":").append(statsSet.zkExcStats.getAndResetValue())
                    .append(",\"").append(statsSet.offsetFileExcStats.getFullName())
                    .append("\":").append(statsSet.offsetFileExcStats.getAndResetValue())
                    .append(",\"").append(statsSet.brokerTimeoutStats.getFullName())
                    .append("\":").append(statsSet.brokerTimeoutStats.getAndResetValue())
                    .append(",\"").append(statsSet.brokerHBExcStats.getFullName())
                    .append("\":").append(statsSet.brokerHBExcStats.getAndResetValue())
                    .append(",\"").append(csmOnlineCnt.getFullName())
                    .append("\":").append(csmOnlineCnt.getAndResetValue())
                    .append(",\"").append(statsSet.csmTimeoutStats.getFullName())
                    .append("\":").append(statsSet.csmTimeoutStats.getAndResetValue())
                    .append(",\"").append(statsSet.errPubOverFlowStats.getFullName())
                    .append("\":").append(statsSet.errPubOverFlowStats.getAndResetValue())
                    .append(",");
            statsSet.fileSyncDltStats.snapShort(strBuff, false);
            strBuff.append(",");
            statsSet.offsetFileSyncDltStats.snapShort(strBuff, false);
            strBuff.append(",");
            statsSet.zkSyncDltStats.snapShort(strBuff, false);
            strBuff.append(",");
            statsSet.msgPubLatencyStats.snapShort(strBuff, false);
            strBuff.append(",");
            statsSet.msgSubLatencyStats.snapShort(strBuff, false);
            strBuff.append(",");
            statsSet.msgConfirmLatencyStats.snapShort(strBuff, false);
            strBuff.append("}");
        } else {
            strBuff.append(",\"").append(statsSet.fileIOExcStats.getFullName())
                    .append("\":").append(statsSet.fileIOExcStats.getValue())
                    .append(",\"").append(statsSet.zkExcStats.getFullName())
                    .append("\":").append(statsSet.zkExcStats.getValue())
                    .append(",\"").append(statsSet.offsetFileExcStats.getFullName())
                    .append("\":").append(statsSet.offsetFileExcStats.getAndResetValue())
                    .append(",\"").append(statsSet.brokerTimeoutStats.getFullName())
                    .append("\":").append(statsSet.brokerTimeoutStats.getValue())
                    .append(",\"").append(statsSet.brokerHBExcStats.getFullName())
                    .append("\":").append(statsSet.brokerHBExcStats.getValue())
                    .append(",\"").append(csmOnlineCnt.getFullName())
                    .append("\":").append(csmOnlineCnt.getValue())
                    .append(",\"").append(statsSet.csmTimeoutStats.getFullName())
                    .append("\":").append(statsSet.csmTimeoutStats.getValue())
                    .append(",\"").append(statsSet.errPubOverFlowStats.getFullName())
                    .append("\":").append(statsSet.errPubOverFlowStats.getValue())
                    .append(",");
            statsSet.fileSyncDltStats.getValue(strBuff, false);
            strBuff.append(",");
            statsSet.offsetFileSyncDltStats.getValue(strBuff, false);
            strBuff.append(",");
            statsSet.zkSyncDltStats.getValue(strBuff, false);
            strBuff.append(",");
            statsSet.msgPubLatencyStats.getValue(strBuff, false);
            strBuff.append(",");
            statsSet.msgSubLatencyStats.getValue(strBuff, false);
            strBuff.append(",");
            statsSet.msgConfirmLatencyStats.getValue(strBuff, false);
            strBuff.append("}");
        }
    }
Query whether the detail statistic is closed.

@return the statistic status
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/stats/BrokerSrvStatsHolder.java