|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.netflix.servo.publish.MetricTransformObserver
public class MetricTransformObserver
An observer that will transform the list of metrics using a given function.
| Constructor Summary | |
|---|---|
MetricTransformObserver(com.google.common.base.Function<Metric,Metric> transformer,
MetricObserver observer)
Create a new MetricTransformObserver using the given transfomer function. |
|
| Method Summary | |
|---|---|
java.lang.String |
getName()
Name associated with an observer. |
void |
update(java.util.List<Metric> metrics)
Invoked with the most recent values for a set of metrics. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public MetricTransformObserver(com.google.common.base.Function<Metric,Metric> transformer,
MetricObserver observer)
transformer - The function used to transform metrics.observer - The MetricObserver that will receive the transfomed metrics.| Method Detail |
|---|
public void update(java.util.List<Metric> metrics)
MetricObserver
update in interface MetricObserverpublic java.lang.String getName()
MetricObserver
getName in interface MetricObserver
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||