Class WorkerStatsApiV2Resource

java.lang.Object
org.apache.pulsar.functions.worker.rest.api.v2.WorkerStatsApiV2Resource
All Implemented Interfaces:
Supplier<WorkerService>

@Path("/worker-stats") @Produces("application/json") @Consumes("application/json") public class WorkerStatsApiV2Resource extends Object implements Supplier<WorkerService>
  • Field Details

    • ATTRIBUTE_WORKERSTATS_SERVICE

      public static final String ATTRIBUTE_WORKERSTATS_SERVICE
      See Also:
    • servletContext

      @Context protected javax.servlet.ServletContext servletContext
    • httpRequest

      @Context protected javax.servlet.http.HttpServletRequest httpRequest
  • Constructor Details

    • WorkerStatsApiV2Resource

      public WorkerStatsApiV2Resource()
  • Method Details

    • get

      public WorkerService get()
      Specified by:
      get in interface Supplier<WorkerService>
    • clientAppId

      @Deprecated public String clientAppId()
      Deprecated.
      use AuthenticationParameters instead
    • getMetrics

      @GET @Path("/metrics") @Produces("application/json") public List<org.apache.pulsar.common.stats.Metrics> getMetrics() throws Exception
      Throws:
      Exception
    • getStats

      @GET @Path("/functionsmetrics") @Produces("application/json") public List<org.apache.pulsar.common.policies.data.WorkerFunctionInstanceStats> getStats() throws IOException
      Throws:
      IOException