![JAR search and dependency download from the Maven repository](/logo.png)
org.graylog2.restroutes.generated.DashboardsResource Maven / Gradle / Ivy
package org.graylog2.restroutes.generated;
import org.graylog2.restroutes.PathMethod;
public class DashboardsResource {
public PathMethod widgetValue(String dashboardId, String widgetId) {
return new PathMethod("GET", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"/widgets/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(widgetId)+"/value");
}
public PathMethod updateWidget(String dashboardId, String widgetId) {
return new PathMethod("PUT", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"/widgets/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(widgetId)+"");
}
public PathMethod updateDescription(String dashboardId, String widgetId) {
return new PathMethod("PUT", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"/widgets/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(widgetId)+"/description");
}
public PathMethod updateCacheTime(String dashboardId, String widgetId) {
return new PathMethod("PUT", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"/widgets/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(widgetId)+"/cachetime");
}
public PathMethod setPositions(String dashboardId) {
return new PathMethod("PUT", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"/positions");
}
public PathMethod remove(String dashboardId, String widgetId) {
return new PathMethod("DELETE", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"/widgets/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(widgetId)+"");
}
public PathMethod get(String dashboardId) {
return new PathMethod("GET", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"");
}
public PathMethod update(String dashboardId) {
return new PathMethod("PUT", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"");
}
public PathMethod delete(String dashboardId) {
return new PathMethod("DELETE", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"");
}
public PathMethod create() {
return new PathMethod("POST", "/dashboards");
}
public PathMethod list() {
return new PathMethod("GET", "/dashboards");
}
public PathMethod addWidget(String dashboardId) {
return new PathMethod("POST", "/dashboards/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(dashboardId)+"/widgets");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy