def METHOD_NAME(cls, ref_id, ns_id_list=[]):
    """获取活跃metric,下发更新操作使用"""
    refs = cls.objects.filter(
        ref_id=ref_id,
        ins_state__in=[InsState.INS_SUCCESS.value, InsState.UPDATE_SUCCESS.value, InsState.METRIC_UPDATED.value],
    )
    if ns_id_list:
        refs = refs.filter(namespace__in=ns_id_list)
    return [i for i in refs]