def METHOD_NAME(self, idx: int, spec: Dict) -> str:
    """解析来源自 ContainerResource 的指标信息"""
    current = '<unknown>'
    if getitems(spec, 'containerResource.target.averageValue') is not None:
        if len(self.statuses) > idx:
            res_cur_avg_val = getitems(self.statuses[idx], 'containerResource.current.averageValue')
            current = res_cur_avg_val if res_cur_avg_val else current
        return f"{current}/{getitems(spec, 'containerResource.target.averageValue')}"
    else:
        if len(self.statuses) > idx:
            res_cur_avg_utilization = getitems(self.statuses[idx], 'containerResource.current.averageUtilization')
            current = f'{res_cur_avg_utilization}%' if res_cur_avg_utilization else current
        target = '<auto>'
        res_tar_avg_utilization = getitems(spec, 'containerResource.target.averageUtilization')
        target = f'{res_tar_avg_utilization}%' if res_tar_avg_utilization else target
        return f'{current}/{target}'