class DefaultCommonAlertStrategy extends AlertConfigStrategy {

    @Override
    public List<InstanceAlertValueResult> checkConfig(InstanceAlertConfig instanceAlertConfig, AlertConfigBaseData alertConfigBaseData) {<FILL_FUNCTION_BODY>}

    private boolean judgeNumber(Object object){
        Pattern numberPattern = Pattern.compile("^-?(([0-9]|([1-9][0-9]*))(\\.[0-9]+)?)$");
        Matcher matcher = numberPattern.matcher(object.toString());
        return matcher.matches();
    }

    private boolean judegNumberIsDouble(Object object){
        return object.toString().contains(".");
    }

}

        Object object = getValueFromRedisInfo(alertConfigBaseData.getStandardStats(), instanceAlertConfig.getAlertConfig());
        if (object == null) {
            return null;
        }
        if(judgeNumber(object)){
            if(judegNumberIsDouble(object)){
                double currentValue= NumberUtils.toDouble(object.toString());
                boolean compareRight = isCompareDoubleRight(instanceAlertConfig, currentValue);
                if (compareRight) {
                    return null;
                }
            }else{
                long currentValue = NumberUtils.toLong(object.toString());
                boolean compareRight = isCompareLongRight(instanceAlertConfig, currentValue);
                if (compareRight) {
                    return null;
                }
            }
        }else{
            String currentValue = object.toString();
            boolean compareRight = isCompareStringRight(instanceAlertConfig, currentValue);
            if (compareRight) {
                return null;
            }
        }
        InstanceInfo instanceInfo = alertConfigBaseData.getInstanceInfo();
        return Arrays.asList(new InstanceAlertValueResult(instanceAlertConfig, instanceInfo, object.toString(),
                instanceInfo.getAppId(), EMPTY));
    
<methods>public non-sealed void <init>() ,public abstract List<com.sohu.cache.entity.InstanceAlertValueResult> checkConfig(com.sohu.cache.entity.InstanceAlertConfig, com.sohu.cache.alert.bean.AlertConfigBaseData) <variables>protected static final java.lang.String EMPTY,protected static final java.lang.String MB_STRING