Class MetricQuerier
- java.lang.Object
-
- org.apache.flink.connector.testframe.utils.MetricQuerier
-
public class MetricQuerier extends Object
The querier used to get job metrics by rest API.
-
-
Constructor Summary
Constructors Constructor Description MetricQuerier(org.apache.flink.configuration.Configuration configuration)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DoublegetAggregatedMetricsByRestAPI(TestEnvironment.Endpoint endpoint, org.apache.flink.api.common.JobID jobId, String sourceOrSinkName, String metricName, String filter)static org.apache.flink.runtime.rest.messages.job.JobDetailsInfogetJobDetails(org.apache.flink.runtime.rest.RestClient client, TestEnvironment.Endpoint endpoint, org.apache.flink.api.common.JobID jobId)org.apache.flink.runtime.rest.messages.job.metrics.AggregatedMetricsResponseBodygetMetricList(TestEnvironment.Endpoint endpoint, org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.jobgraph.JobVertexID vertexId)org.apache.flink.runtime.rest.messages.job.metrics.AggregatedMetricsResponseBodygetMetrics(TestEnvironment.Endpoint endpoint, org.apache.flink.api.common.JobID jobId, org.apache.flink.runtime.jobgraph.JobVertexID vertexId, String filters)
-
-
-
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
-
-