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

org.graylog2.restroutes.generated.radio.MetricsResource Maven / Gradle / Ivy

The newest version!

package org.graylog2.restroutes.generated.radio;

import org.graylog2.restroutes.PathMethod;

public class MetricsResource {


    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)+"");
    }

    public PathMethod metrics() {
        return new PathMethod("GET", "/system/metrics");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy