Interface MetricReporter
public interface MetricReporter
-
Method Summary
Modifier and TypeMethodDescriptionvoidupdateMetric(Object metricObject, String clientId, String catalog, String layer) Installs a mutable metric if the value is new or updates it when the metric has already existed.voidInstalls a mutable metric if the value is new or updates it when the metric has already existed.
-
Method Details
-
updateMetric
void updateMetric(String prefix, Object metricObject, String clientId, String catalog, String layer) Installs a mutable metric if the value is new or updates it when the metric has already existed. The metric name is extracted frommetricObjectand prefixed with prefixmetricObjects of unknown types should be ignored without error- Parameters:
prefix- prefix to add to the metric name, points to the metric originmetricObject- metric of KafkaMetric type
-
updateMetric
Installs a mutable metric if the value is new or updates it when the metric has already existed. The metric name is extracted frommetricObjectmetricObjects of unknown types should be ignored without error- Parameters:
metricObject- metric of KafkaMetric type
-