Class Metric

  • All Implemented Interfaces:

    
    public class Metric<T extends Object>
    
                        

    Metric provides methods common to all Prometheus metric type wrappers.

    A wrapper that extends Metric<T> produces and consumes values of type T. Metrics are held in a MetricsContainer.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final String name
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract String getName() The name of this metric.
      abstract T get() Supplies the current value of this metric.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • get

         abstract T get()

        Supplies the current value of this metric.