org.graylog2.restroutes.generated.LoggersResource Maven / Gradle / Ivy
The newest version!
package org.graylog2.restroutes.generated;
import org.graylog2.restroutes.PathMethod;
public class LoggersResource {
public PathMethod setSubsystemLoggerLevel(String subsystem, String level) {
return new PathMethod("PUT", "/system/loggers/subsystems/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(subsystem)+"/level/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(level)+"");
}
public PathMethod subsystems() {
return new PathMethod("GET", "/system/loggers/subsystems");
}
public PathMethod setSingleLoggerLevel(String loggerName, String level) {
return new PathMethod("PUT", "/system/loggers/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(loggerName)+"/level/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(level)+"");
}
public PathMethod loggers() {
return new PathMethod("GET", "/system/loggers");
}
public PathMethod messages() {
return new PathMethod("GET", "/system/loggers/messages/recent");
}
}