Class MetricQuerier


  • public class MetricQuerier
    extends Object
    The querier used to get job metrics by rest API.
    • Constructor Detail

      • MetricQuerier

        public MetricQuerier​(org.apache.flink.configuration.Configuration configuration)
                      throws org.apache.flink.util.ConfigurationException
        Throws:
        org.apache.flink.util.ConfigurationException
    • Method Detail

      • getJobDetails

        public static org.apache.flink.runtime.rest.messages.job.JobDetailsInfo getJobDetails​(org.apache.flink.runtime.rest.RestClient client,
                                                                                              TestEnvironment.Endpoint endpoint,
                                                                                              org.apache.flink.api.common.JobID jobId)
                                                                                       throws Exception
        Throws:
        Exception
      • getMetricList

        public org.apache.flink.runtime.rest.messages.job.metrics.AggregatedMetricsResponseBody getMetricList​(TestEnvironment.Endpoint endpoint,
                                                                                                              org.apache.flink.api.common.JobID jobId,
                                                                                                              org.apache.flink.runtime.jobgraph.JobVertexID vertexId)
                                                                                                       throws Exception
        Throws:
        Exception
      • getMetrics

        public org.apache.flink.runtime.rest.messages.job.metrics.AggregatedMetricsResponseBody getMetrics​(TestEnvironment.Endpoint endpoint,
                                                                                                           org.apache.flink.api.common.JobID jobId,
                                                                                                           org.apache.flink.runtime.jobgraph.JobVertexID vertexId,
                                                                                                           String filters)
                                                                                                    throws Exception
        Throws:
        Exception