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 Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringprotected javax.servlet.http.HttpServletRequestprotected javax.servlet.ServletContext -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
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
- Specified by:
getin interfaceSupplier<WorkerService>
-
clientAppId
Deprecated.useAuthenticationParametersinstead -
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
-
AuthenticationParametersinstead