use of co.cask.cdap.client.MetricsClient in project cdap by caskdata.
the class GenerateClientUsageExample method metricsClient.
public void metricsClient() throws Exception {
// Construct the client used to interact with CDAP
MetricsClient metricsClient = new MetricsClient(clientConfig);
// Fetch the total number of events that have been processed by a flowlet
RuntimeMetrics metric = metricsClient.getFlowletMetrics(new NamespaceId("user").app("HelloWorld").flow("someFlow").flowlet("process.events.processed"));
}
Aggregations