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