public interface RichGaugeRepository extends MetricRepository<RichGauge>
Modifier and Type | Method and Description |
---|---|
void |
reset(java.lang.String name)
Reset the gauge to zero and reset any accumulated average, max and min values
|
void |
setAlpha(java.lang.String name,
double value)
Sets the "smoothing constant", "alpha" for use in calculating an exponential moving average for the
gauge.
|
void |
setValue(java.lang.String name,
double value)
Sets the current value of the gauge.
|
void setValue(java.lang.String name, double value)
name
- the gauge namevalue
- the value of the gaugejava.lang.IllegalArgumentException
- in case the given name is nullvoid setAlpha(java.lang.String name, double value)
The parameter can be set at any time after the gauge has been created. The mean calculated up to that point will be used to initialize the moving average from that point on.
name
- the gauge namevalue
- the value of the gaugejava.lang.IllegalArgumentException
- in case the given name is nullvoid reset(java.lang.String name)
name
- the gauge namejava.lang.IllegalArgumentException
- in case the given name is null