public StringBuilder toJsonString(final StringBuilder sBuilder) {
        switch (this.type) {
            case 1:
                return sBuilder.append("{\"zeroCnt\":").append(this.zeroCnt)
                        .append(",\"freqInMs\":").append(this.freqLtInMs).append("}");
            case 2:
                return sBuilder.append("{\"start\":\"")
                        .append(String.format("%02d", this.startTime / 100))
                        .append(":").append(String.format("%02d", this.startTime % 100))
                        .append("\",\"end\":\"")
                        .append(String.format("%02d", this.endTime / 100))
                        .append(":").append(String.format("%02d", this.endTime % 100))
                        .append("\",\"dltStInM\":").append(this.dltInM / 1024 / 1024)
                        .append(",\"dltEdInM\":").append(this.dataLtInSZ / 1024 / 1024).append("}");
            case 3:
                return sBuilder.append("{\"normFreqInMs\":").append((int) this.dataLtInSZ)
                        .append(",\"filterFreqInMs\":").append(this.freqLtInMs)
                        .append(",\"minDataFilterFreqInMs\":").append(this.zeroCnt).append("}");
            case 0:
            default:
                return sBuilder.append("{\"start\":\"")
                        .append(String.format("%02d", this.startTime / 100))
                        .append(":").append(String.format("%02d", this.startTime % 100))
                        .append("\",\"end\":\"")
                        .append(String.format("%02d", this.endTime / 100))
                        .append(":").append(String.format("%02d", this.endTime % 100))
                        .append("\",\"dltInM\":").append(this.dltInM)
                        .append(",\"limitInM\":").append(this.dataLtInSZ / 1024 / 1024)
                        .append(",\"freqInMs\":").append(this.freqLtInMs).append("}");
        }
    }
Build json result string buffer

@param sBuilder   the string buffer
@return  the result content
inlong-tubemq/tubemq-core/src/main/java/org/apache/inlong/tubemq/corebase/policies/FlowCtrlItem.java