Package 

Class BooleanMetric

  • All Implemented Interfaces:

    
    public final class BooleanMetric
    extends Metric<Boolean>
                        

    A metric that represents booleans using Prometheus Gauges. A non-zero value corresponds to true, zero corresponds to false.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

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

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      String getName() the name of this metric
      Boolean get() Supplies the current value of this metric.
      final Unit set(Boolean newValue) Atomically sets the gauge to the given value.
      final Boolean setAndGet(Boolean newValue) Atomically sets the gauge to the given value, returning the updated value.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait