类 MultiMetricRichGaugeReader
- java.lang.Object
- org.springframework.boot.actuate.metrics.rich.MultiMetricRichGaugeReader
- 所有已实现的接口:
RichGaugeReader
public class MultiMetricRichGaugeReader extends Object implements RichGaugeReader
ARichGaugeReader
that works by reading metric values from aMultiMetricRepository
where the group name is the RichGauge name. The format used matches that in the RichGaugeExporter, so this reader can be used on a store that has been populated using that exporter.- 从以下版本开始:
- 1.1.0
构造器概要
构造器 构造器 说明 MultiMetricRichGaugeReader(MultiMetricRepository repository)
构造器详细资料
MultiMetricRichGaugeReader
public MultiMetricRichGaugeReader(MultiMetricRepository repository)
方法详细资料
findOne
public RichGauge findOne(String name)
从接口复制的说明:RichGaugeReader
Find a single instance of a rich gauge by name.- 指定者:
findOne
在接口中RichGaugeReader
- 参数:
name
- the name of the gauge- 返回:
- a rich gauge value
findAll
public Iterable<RichGauge> findAll()
从接口复制的说明:RichGaugeReader
Find all instances of rich gauge known to this reader.- 指定者:
findAll
在接口中RichGaugeReader
- 返回:
- all instances known to this reader
count
public long count()
从接口复制的说明:RichGaugeReader
Return the number of gauge values available.- 指定者:
count
在接口中RichGaugeReader
- 返回:
- the number of values