All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.graylog2.restroutes.generated.GrokResource Maven / Gradle / Ivy

The newest version!

package org.graylog2.restroutes.generated;

import org.graylog2.restroutes.PathMethod;

public class GrokResource {


    public PathMethod listGrokPatterns() {
        return new PathMethod("GET", "/system/grok");
    }

    public PathMethod listPattern(String patternId) {
        return new PathMethod("GET", "/system/grok/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(patternId)+"");
    }

    public PathMethod createPattern() {
        return new PathMethod("POST", "/system/grok");
    }

    public PathMethod bulkUpdatePatterns() {
        return new PathMethod("PUT", "/system/grok");
    }

    public PathMethod updatePattern(String patternId) {
        return new PathMethod("PUT", "/system/grok/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(patternId)+"");
    }

    public PathMethod removePattern(String patternId) {
        return new PathMethod("DELETE", "/system/grok/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(patternId)+"");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy