
org.graylog2.restroutes.generated.MetricsResource Maven / Gradle / Ivy
package org.graylog2.restroutes.generated;
import org.graylog2.restroutes.PathMethod;
public class MetricsResource {
public PathMethod metrics() {
return new PathMethod("GET", "/system/metrics");
}
public PathMethod metricNames() {
return new PathMethod("GET", "/system/metrics/names");
}
public PathMethod singleMetric(String metricName) {
return new PathMethod("GET", "/system/metrics/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(metricName)+"");
}
public PathMethod multipleMetrics() {
return new PathMethod("POST", "/system/metrics/multiple");
}
public PathMethod byNamespace(String namespace) {
return new PathMethod("GET", "/system/metrics/namespace/"+com.google.common.net.UrlEscapers.urlPathSegmentEscaper().escape(namespace)+"");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy