Interface LabelledMetric<T>

Type Parameters:
T - The type of metric the labels are applied to.

public interface LabelledMetric<T>
A metric with labels associated. Values for the associated labels can be provided to access the underlying metric.
  • Method Summary

    Modifier and Type
    Method
    Description
    labels(String... labels)
    Returns a metric tagged with the specified label values.
  • Method Details

    • labels

      T labels(String... labels)
      Returns a metric tagged with the specified label values.
      Parameters:
      labels - An array of label values in the same order as the labels when creating this metric. The number of values provided must match the number of labels.
      Returns:
      A metric tagged with the specified labels.