Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 2 of 2 for validLabels (0.05 seconds)

  1. cmd/metrics-v3-types.go

    	}
    
    	validLabels := desc.getLabelSet()
    	labelMap := make(map[string]string, len(labels)/2)
    	for i := 0; i < len(labels); i += 2 {
    		if _, ok := validLabels[labels[i]]; !ok {
    			panic(fmt.Sprintf("invalid label: %s (metric: %s)", labels[i], name))
    		}
    		labelMap[labels[i]] = labels[i+1]
    	}
    
    	if len(labels)/2 != len(validLabels) {
    		panic("not all labels were given values")
    	}
    
    Created: Sun Apr 05 19:28:12 GMT 2026
    - Last Modified: Fri Feb 28 19:33:08 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  2. src/main/java/org/codelibs/fess/api/chat/ChatApiManager.java

                            .forEach(allowedLabels::add);
                }
                final List<String> validLabels = new ArrayList<>();
                for (final String label : labels) {
                    if (label != null && allowedLabels.contains(label)) {
                        validLabels.add(label);
                    } else if (logger.isDebugEnabled()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 06:06:55 GMT 2026
    - 25.8K bytes
    - Click Count (0)
Back to Top