[Job Manager] Add ResourceCost struct and getResourceCost function