Package io.prometheus.client
Class Summary.Child
java.lang.Object
io.prometheus.client.Summary.Child
- Enclosing class:
Summary
The value of a single Summary.
Warning: References to a Child become invalid after using
SimpleCollector.remove(java.lang.String...)
or SimpleCollector.clear()
.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DoubleAdder
private final List
<CKMSQuantiles.Quantile> private final TimeWindowQuantiles
private final DoubleAdder
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Child
(List<CKMSQuantiles.Quantile> quantiles, long maxAgeSeconds, int ageBuckets) -
Method Summary
-
Field Details
-
count
-
sum
-
quantiles
-
quantileValues
-
-
Constructor Details
-
Child
-
-
Method Details
-
time
Executes runnable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.- Parameters:
timeable
- Code that is being timed- Returns:
- Measured duration in seconds for timeable to complete.
-
time
Executes callable code (e.g. a Java 8 Lambda) and observes a duration of how long it took to run.- Parameters:
timeable
- Code that is being timed- Returns:
- Result returned by callable.
-
observe
public void observe(double amt) Observe the given amount. -
startTimer
Start a timer to track a duration.Call
Summary.Timer.observeDuration()
at the end of what you want to measure the duration of. -
get
Get the value of the Summary.Warning: The definition of
Summary.Child.Value
is subject to change.
-