Package io.prometheus.client
Class Counter.Child
- java.lang.Object
-
- io.prometheus.client.Counter.Child
-
- Enclosing class:
- Counter
public static class Counter.Child extends java.lang.Object
The value of a single Counter.Warning: References to a Child become invalid after using
SimpleCollector.remove(java.lang.String...)
orSimpleCollector.clear()
,
-
-
Field Summary
Fields Modifier and Type Field Description private DoubleAdder
value
-
Constructor Summary
Constructors Constructor Description Child()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
get()
Get the value of the counter.void
inc()
Increment the counter by 1.void
inc(double amt)
Increment the counter by the given amount.
-
-
-
Field Detail
-
value
private final DoubleAdder value
-
-