public final class NormalizationTransform extends java.lang.Object implements MetricObserver
Constructor and Description |
---|
NormalizationTransform(MetricObserver observer,
long step,
long heartbeat)
Deprecated.
Please use a constructor that specifies the the timeunit explicitly.
|
NormalizationTransform(MetricObserver observer,
long step,
long heartbeat,
Clock clock)
Deprecated.
Please use a constructor that specifies the the timeunit explicitly.
|
NormalizationTransform(MetricObserver observer,
long step,
long heartbeat,
java.util.concurrent.TimeUnit unit)
Creates a new instance with the specified sampling and heartbeat interval and the
specified clock implementation.
|
NormalizationTransform(MetricObserver observer,
long step,
long heartbeat,
java.util.concurrent.TimeUnit unit,
Clock clock)
Creates a new instance with the specified sampling and heartbeat interval and the specified
clock implementation.
|
@Deprecated public NormalizationTransform(MetricObserver observer, long step, long heartbeat)
observer
- downstream observer to forward values after rates have been normalized
to step boundariesstep
- sampling interval in millisecondsheartbeat
- how long to keep values before dropping them and treating new samples
as first report
(in milliseconds)@Deprecated public NormalizationTransform(MetricObserver observer, long step, long heartbeat, Clock clock)
observer
- downstream observer to forward values after rates have been normalized
to step boundariesstep
- sampling interval in millisecondsheartbeat
- how long to keep values before dropping them and treating new samples as
first report (in milliseconds)clock
- The Clock
to use for getting
the current time.public NormalizationTransform(MetricObserver observer, long step, long heartbeat, java.util.concurrent.TimeUnit unit)
observer
- downstream observer to forward values after rates have been normalized
to step boundariesstep
- sampling intervalheartbeat
- how long to keep values before dropping them and treating new samples
as first reportunit
- TimeUnit
in which step and heartbeat
are specified.public NormalizationTransform(MetricObserver observer, long step, long heartbeat, java.util.concurrent.TimeUnit unit, Clock clock)
observer
- downstream observer to forward values after rates have been normalized
to step boundariesstep
- sampling intervalheartbeat
- how long to keep values before dropping them and treating new samples
as first reportunit
- The TimeUnit
in which step
and heartbeat are specified.clock
- The Clock
to use for getting the current time.public void update(java.util.List<Metric> metrics)
update
in interface MetricObserver
public java.lang.String getName()
getName
in interface MetricObserver