Interface MetricsAdapter


public interface MetricsAdapter
Integration point, allowing to integrate with the host system monitoring implementation.
See Also:
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static final class 
    Represents a metric identifier which consists of its name and optional tags (key-value).
  • Method Summary

    Modifier and Type
    Method
    Description
    default void
    report(MetricsAdapter.MetricId metricId, long number)
    It's used to report a single value based metric.
    default void
    It's used to report an execution of some action with its duration.
  • Method Details

    • report

      default void report(MetricsAdapter.MetricId metricId, long number)
      It's used to report a single value based metric.
      Parameters:
      metricId - a metric identifier
      number - a metric value
    • report

      default void report(MetricsAdapter.MetricId metricId, Duration duration)
      It's used to report an execution of some action with its duration.
      Parameters:
      metricId - a metric identifier
      duration - an action's duration