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)+"");
}
}