| Constructor and Description |
|---|
MultiReducedMetric(IReducer reducer) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,Object> |
getValueAndReset()
Get value and reset.
|
ReducedMetric |
scope(String key) |
public MultiReducedMetric(IReducer reducer)
public ReducedMetric scope(String key)
public Map<String,Object> getValueAndReset()
IMetricGet value and reset.
getValueAndReset in interface IMetricIMetricsConsumer#handleDataPoints(org.apache.storm.metric.api.IMetricsConsumer
.TaskInfo,
java.util.Collection). If null is returned nothing will be sent. If this value can be reset, like with a counter, a side effect of calling this should be that the value is reset.Copyright © 2022 The Apache Software Foundation. All rights reserved.