class MetricImporterUtils {

    public static void validExtraTags(Map<String, String> extraTags) {
        if (!extraTags.containsKey("app")) {
            throw new IllegalArgumentException("app tag in url is required");
        }
        if (!extraTags.containsKey("step")) {
            throw new IllegalArgumentException("step tag in url is required");
        }
        try {
            Integer.parseInt(extraTags.get("step"));
        } catch (NumberFormatException nfe) {
            throw new IllegalArgumentException("step tag in url is invalid");
        }
    }

    private  MetricImporterUtils();

}