class CommonUtils {

    public static String getIndexNameFromRuleParam(Map<String, String> ruleParam) {
        if (ruleParam.containsKey(PacmanSdkConstants.ASSET_GROUP_KEY)) {
            return ruleParam.get(PacmanSdkConstants.ASSET_GROUP_KEY);
        } else {
            return ruleParam.get(PacmanSdkConstants.DATA_SOURCE_KEY) + "_"
                    + ruleParam.get(PacmanSdkConstants.TARGET_TYPE);
        }
    }

}