Package io.prometheus.client
Class Counter.Child
java.lang.Object
io.prometheus.client.Counter.Child
- Enclosing class:
Counter
The value of a single Counter.
Warning: References to a Child become invalid after using
SimpleCollector.remove(java.lang.String...)
or SimpleCollector.clear()
,
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
value
-
-
Constructor Details
-
Child
public Child()
-
-
Method Details
-
inc
public void inc()Increment the counter by 1. -
inc
public void inc(double amt) Increment the counter by the given amount.- Throws:
IllegalArgumentException
- If amt is negative.
-
get
public double get()Get the value of the counter.
-