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

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

The newest version!

package org.graylog2.restroutes.generated;

import org.graylog2.restroutes.PathMethod;

public class AlarmCallbackResource {


    public PathMethod get(String streamid) {
        return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/alarmcallbacks");
    }

    public PathMethod get(String streamid, String alarmCallbackId) {
        return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/alarmcallbacks/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(alarmCallbackId)+"");
    }

    public PathMethod update(String streamid, String alarmCallbackId) {
        return new PathMethod("PUT", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/alarmcallbacks/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(alarmCallbackId)+"");
    }

    public PathMethod delete(String streamid, String alarmCallbackId) {
        return new PathMethod("DELETE", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/alarmcallbacks/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(alarmCallbackId)+"");
    }

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

    public PathMethod available(String streamid) {
        return new PathMethod("GET", "/streams/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(streamid)+"/alarmcallbacks/available");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy