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

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

The newest version!

package org.graylog2.restroutes.generated;

import org.graylog2.restroutes.PathMethod;

public class StreamAlertConditionResource {


    public PathMethod update(String streamId, String conditionId) {
        return new PathMethod("PUT", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamId)+"/alerts/conditions/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(conditionId)+"");
    }

    public PathMethod delete(String streamId, String conditionId) {
        return new PathMethod("DELETE", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamId)+"/alerts/conditions/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(conditionId)+"");
    }

    public PathMethod create(String streamId) {
        return new PathMethod("POST", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamId)+"/alerts/conditions");
    }

    public PathMethod list(String streamId) {
        return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamId)+"/alerts/conditions");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy