Package org.jitsi.metrics
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 tofalse.
-
-
Constructor Summary
Constructors Constructor Description BooleanMetric(String name, String help, String namespace, Boolean initialValue)BooleanMetric(String name, String help, String namespace)
-
Method Summary
Modifier and Type Method Description StringgetName()the name of this metric Booleanget()Supplies the current value of this metric. final Unitset(Boolean newValue)Atomically sets the gauge to the given value. final BooleansetAndGet(Boolean newValue)Atomically sets the gauge to the given value, returning the updated value.
-