(mode string)
| 89 | } |
| 90 | |
| 91 | func ValidateHistogramMode(mode string) error { |
| 92 | if _, ok := SupportedHistogramModesSet[mode]; !ok { |
| 93 | return fmt.Errorf("metrics_generator.generate_native_histograms \"%s\" is not a valid value, valid values: classic, native, both", mode) |
| 94 | } |
| 95 | return nil |
| 96 | } |
| 97 | |
| 98 | func ValidateHostInfoHostIdentifiers(hostIdentifiers []string) error { |
| 99 | if len(hostIdentifiers) == 0 { |