class ThreadMetrics {

    public static Sensor processRateSensor(final String threadId,
                                           final StreamsMetricsImpl streamsMetrics) {
        final Sensor sensor =
            streamsMetrics.threadLevelSensor(threadId, PROCESS + RATE_SUFFIX, RecordingLevel.INFO);
        final Map<String, String> tagMap = streamsMetrics.threadLevelTagMap(threadId);
        final String threadLevelGroup = threadLevelGroup(streamsMetrics);
        addRateOfSumAndSumMetricsToSensor(
            sensor,
            threadLevelGroup,
            tagMap,
            PROCESS,
            PROCESS_RATE_DESCRIPTION,
            PROCESS_TOTAL_DESCRIPTION
        );
        return sensor;
    }

    private  ThreadMetrics();

}