class TaskMetrics {

    public static Sensor droppedRecordsSensorOrSkippedRecordsSensor(final String threadId,
                                                                    final String taskId,
                                                                    final StreamsMetricsImpl streamsMetrics) {
        if (streamsMetrics.version() == Version.FROM_0100_TO_24) {
            return ThreadMetrics.skipRecordSensor(threadId, streamsMetrics);
        }
        return droppedRecordsSensor(threadId, taskId, streamsMetrics);
    }

    private  TaskMetrics();

}