接口 PrefixMetricWriter
- 所有已知子接口:
MultiMetricRepository
public interface PrefixMetricWriter
A writer for metrics that allows efficient storage of groups of metrics with a common name prefix (their group name).- 从以下版本开始:
- 1.1.0
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 void
increment(String group, Delta<?> delta)
Increment the value of a metric (or decrement if the delta is negative).void
reset(String group)
Rest the values of all metrics in the group.void
set(String group, Collection<Metric<?>> values)
Save some metric values and associate them with a group name.
方法详细资料
set
void set(String group, Collection<Metric<?>> values)
Save some metric values and associate them with a group name.- 参数:
group
- the name of the groupvalues
- the metric values to save
increment
void increment(String group, Delta<?> delta)
Increment the value of a metric (or decrement if the delta is negative). The name of the metric to increment isgroup + "." + delta.name
.- 参数:
group
- the name of the groupdelta
- the amount to increment by