public boolean hasConsumerIgnoreCase(String id) {
        return consumers.keySet().stream()
                .anyMatch(existing -> existing.equalsIgnoreCase(id));
    }
A mutable helper class representing the user defined metrics and consumers.

@author gjoranv
config-model/src/main/java/com/yahoo/vespa/model/admin/monitoring/builder/Metrics.java