function getByName(name) {
	/* istanbul ignore next */
	if (!name) return null;

	let n = Object.keys(Types).find(n => n.toLowerCase() == name.toLowerCase());
	if (n) return Types[n];
}
Get MetricType class by name.

@param {String} name
@returns