Class MetricsHttpService

  • All Implemented Interfaces:
    com.linecorp.armeria.server.HttpService, com.linecorp.armeria.server.Service<com.linecorp.armeria.common.HttpRequest,​com.linecorp.armeria.common.HttpResponse>

    public class MetricsHttpService
    extends com.linecorp.armeria.server.AbstractHttpService
    Returns metrics in an HTTP response as JSON, useful for viewing current metrics of a running server. Should only be exposed internally.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected com.linecorp.armeria.common.HttpResponse doGet​(com.linecorp.armeria.server.ServiceRequestContext ctx, com.linecorp.armeria.common.HttpRequest req)  
      • Methods inherited from class com.linecorp.armeria.server.AbstractHttpService

        doDelete, doDelete, doGet, doHead, doHead, doOptions, doOptions, doPatch, doPatch, doPost, doPost, doPut, doPut, doTrace, doTrace, serve
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface com.linecorp.armeria.server.Service

        as, decorate, decorate, decorate, serviceAdded, shouldCachePath
    • Method Detail

      • doGet

        protected com.linecorp.armeria.common.HttpResponse doGet​(com.linecorp.armeria.server.ServiceRequestContext ctx,
                                                                 com.linecorp.armeria.common.HttpRequest req)
                                                          throws java.lang.Exception
        Overrides:
        doGet in class com.linecorp.armeria.server.AbstractHttpService
        Throws:
        java.lang.Exception