class PatchingRepositoryImpl implements PatchingRepository, Constants {

        } @Override
    public Map<String, Long> getQuartersWithPatchingData(String assetGroup)
            throws DataException {
        Map<String, Object> mustFilter = null;
        if (StringUtils.isNotBlank(assetGroup)) {
            mustFilter = new HashMap<>();
            mustFilter.put(CommonUtils.convertAttributetoKeyword("ag"),
                    assetGroup);

        }
        try{
        return elasticSearchRepository
                .getDateHistogramForIndexAndTypeByInterval("assetgroup_stats",
                        "patching", mustFilter, null, null, "date", "quarter");

        } catch(Exception e){
            throw new DataException(e);
        } }

}