Interface MetricReporter


public interface MetricReporter
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    updateMetric(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.
    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.
  • 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 from metricObject and prefixed with prefix

      metricObjects of unknown types should be ignored without error

      Parameters:
      prefix - prefix to add to the metric name, points to the metric origin
      metricObject - metric of KafkaMetric type
    • updateMetric

      void updateMetric(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 from metricObject

      metricObjects of unknown types should be ignored without error

      Parameters:
      metricObject - metric of KafkaMetric type