public void getValue(StringBuilder strBuff, boolean resetValue) {
        if (!TStringUtils.isEmpty(this.trafficName)) {
            strBuff.append("\"").append(this.trafficName).append("\":");
        }
        if (resetValue) {
            strBuff.append("{\"")
                    .append(msgCnt.getShortName()).append("\":")
                    .append(msgCnt.getAndResetValue()).append(",\"")
                    .append(msgSize.getShortName()).append("\":")
                    .append(msgSize.getAndResetValue()).append("}");
        } else {
            strBuff.append("{\"")
                    .append(msgCnt.getShortName()).append("\":")
                    .append(msgCnt.getValue()).append(",\"")
                    .append(msgSize.getShortName()).append("\":")
                    .append(msgSize.getValue()).append("}");
        }
    }
Get traffic information in json format.

@param strBuff      the string information container
@param resetValue   whether reset value
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/metric/TrafficStatsUnit.java