public final class Measurements extends Object
| Constructor and Description |
|---|
Measurements() |
| Modifier and Type | Method and Description |
|---|---|
void |
increment(String name)
Increment the
MutableDouble value. |
List<Pair<String,Double>> |
percentage(Double sum)
Computes percentages for each of the measures managed by this instance.
|
void |
set(String name,
Double value)
Sets the measure value.
|
public void increment(String name)
MutableDouble value.name - name of the measure who's value need to be incremented.public void set(String name, Double value)
name - of the measure.value - to set for the measure.Copyright © 2024 CDAP Licensed under the Apache License, Version 2.0.