org.graylog2.restroutes.generated.StreamAlertReceiverResource Maven / Gradle / Ivy
The newest version!
package org.graylog2.restroutes.generated;
import org.graylog2.restroutes.PathMethod;
public class StreamAlertReceiverResource {
public PathMethod addReceiver(String streamId) {
return new PathMethod("POST", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamId)+"/alerts/receivers");
}
public PathMethod removeReceiver(String streamId) {
return new PathMethod("DELETE", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamId)+"/alerts/receivers");
}
public PathMethod sendDummyAlert(String streamId) {
return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamId)+"/alerts/sendDummyAlert");
}
}