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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T labels​(java.lang.String... labels)
      Returns a metric tagged with the specified label values.
    • Method Detail

      • labels

        T labels​(java.lang.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.