class AssetGroupUtil {

    public static Map<String, Object> fetchPatchingCompliance(String api, String ag ,String token) throws Exception {
        Map<String, Object> patchingInfo = new HashMap<>();
        try {
            String responseJson = HttpUtil.get(api + "/patching?ag=" + ag,token);
            Map<String, Object> vulnMap = Util.parseJson(responseJson);
            @SuppressWarnings("unchecked")
            Map<String, Map<String, Object>> data = (Map<String, Map<String, Object>>) vulnMap.get("data");
            Map<String, Object> output = data.get(OUTPUT);
            if (output != null)
                patchingInfo.putAll(data.get(OUTPUT));
        } catch (Exception e) {
            LOGGER.error("Error in fetchVulnCount",e);
            throw e;
        }
        return patchingInfo;
    }

    private  AssetGroupUtil();

}