rename: metric -> result, resource -> metric, resourceidentifier -> allocid