Class AbstractMetricsHandler<M extends MessageParameters>

java.lang.Object
org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandlerAdapter
org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandlerAdapter
org.apache.flink.shaded.netty4.io.netty.channel.SimpleChannelInboundHandler<RoutedRequest>
Type Parameters:
M - Type of the concrete MessageParameters
All Implemented Interfaces:
AutoCloseable, org.apache.flink.shaded.netty4.io.netty.channel.ChannelHandler, org.apache.flink.shaded.netty4.io.netty.channel.ChannelInboundHandler, org.apache.flink.util.AutoCloseableAsync
Direct Known Subclasses:
JobManagerMetricsHandler, JobManagerOperatorMetricsHandler, JobMetricsHandler, JobVertexMetricsHandler, SubtaskMetricsHandler, TaskManagerMetricsHandler

public abstract class AbstractMetricsHandler<M extends MessageParameters> extends AbstractRestHandler<RestfulGateway,EmptyRequestBody,MetricCollectionResponseBody,M>
Request handler that returns for a given task a list of all available metrics or the values for a set of metrics.

If the query parameters do not contain a "get" parameter the list of all metrics is returned. {"available": [ { "name" : "X", "id" : "X" } ] }

If the query parameters do contain a "get" parameter, a comma-separated list of metric names is expected as a value. /metrics?get=X,Y The handler will then return a list containing the values of the requested metrics. [ { "id" : "X", "value" : "S" }, { "id" : "Y", "value" : "T" } ]