type is the type of metric source. It should be one of "Object", "Pods" or "Resource", each mapping to a matching field in the object.