T - 收集的指标类型V - 收集指标后统计所采用的类型public interface StatInfoCollector<T,V>
| Modifier and Type | Method and Description |
|---|---|
void |
collectStatInfo(T info,
Map<String,String> metricLabels,
MetricValueAggregationStrategy<T>[] strategies)
使用Strategies策略集收集info的信息
|
Collection<V> |
getCollectedValues()
返回统计的结果
|
void collectStatInfo(T info, Map<String,String> metricLabels, MetricValueAggregationStrategy<T>[] strategies)
info - 收集的指标类型的值metricLabels - 收集的指标的标签集strategies - 收集指标采用的策略集Collection<V> getCollectedValues()
Copyright © 2024. All rights reserved.