func (m Metrics) ValidateMetric(name, value string) error {
	metric, exists := m.Metrics[name]
	if !exists {
		return fmt.Errorf("metric %q not defined", name)
	}
	if IsBuiltinMetric(name) {
		return validateValue(value)
	}
	return metric.Type.validateValue(value)
}
// ValidateMetric validates the supplied metric name and value against the loaded
// metric definitions.
ValidateMetric validates the supplied metric name and value against the loaded
metric definitions.
// ValidateMetric validates the supplied metric name and value against the loaded // metric definitions .
func (m Metrics) ValidateMetric(name, value string) error {
	metric, exists := m.Metrics[name]
	if !exists {
		return fmt.Errorf("metric %q not defined", name)
	}
	if IsBuiltinMetric(name) {
		return validateValue(value)
	}
	return metric.Type.validateValue(value)
}
func ( m Metrics ) ValidateMetric ( name , value string ) error { metric , exists := m . Metrics [ name ] if ! exists { return fmt . Errorf ( " " , name ) } if IsBuiltinMetric ( name ) { return validateValue ( value ) } return metric . Type . validateValue ( value ) }
ValidateMetric validates the supplied metric name and value against the loaded
metric definitions.
ValidateMetric validates the supplied metric name and value against the loaded metric definitions .