APISonar


io.seldon.api.logging.CtrFullLogger.log

> io > seldon > api > logging > CtrFullLogger > log
io APIs seldon APIs api APIs logging APIs CtrFullLogger APIs log APIs

Example 1
public void logClickAction(ConsumerBean consumerBean, ActionBean actionBean, LastRecommendationBean lastRecs, int clickIndex,
                          String recTag, String recsCounter) {
        StatsdPeer.logClick(consumerBean.getShort_name(), recTag);
        String stratName = clientAlgorithmStore.retrieveStrategy(consumerBean.getShort_name()).getName(actionBean.getUser(), recTag);
        CtrFullLogger.log(true, consumerBean.getShort_name(), actionBean.getUser(),
                actionBean.getItem(), recTag);
        String algorithmsString = lastRecs==null? "UNKNOWN": lastRecs.getAlgorithm();
        CtrLogger.log(true, consumerBean.getShort_name(), algorithmsString,
                clickIndex, actionBean.getUser(), recsCounter,
                itemService.getInternalItemId(consumerBean,actionBean.getItem()), 0, "", stratName, recTag);

    }