func()

in pkg/config/metric_types.go [34:45]


func (mt *MetricTypes) HasType(metricType MetricType) bool {
	if mt == nil || len(*mt) == 0 {
		// By default, we consider that a metric server serves all the known metric types.
		return true
	}
	for _, t := range *mt {
		if t == metricType {
			return true
		}
	}
	return false
}