function resolve(type) {
	const TypeClass = getByName(type);
	if (!TypeClass) throw new BrokerOptionsError(`Invalid metric type '${type}'.`, { type });

	return TypeClass;
}
Resolve metric type by name

@param {string} type
@returns {BaseMetric}
@memberof ServiceBroker