类 CompositeMetricReader
- java.lang.Object
- org.springframework.boot.actuate.metrics.reader.CompositeMetricReader
- 所有已实现的接口:
MetricReader
public class CompositeMetricReader extends Object implements MetricReader
Composite implementation ofMetricReader
.
构造器概要
构造器 构造器 说明 CompositeMetricReader(MetricReader... readers)
构造器详细资料
CompositeMetricReader
public CompositeMetricReader(MetricReader... readers)
方法详细资料
findOne
public Metric<?> findOne(String metricName)
从接口复制的说明:MetricReader
Find an instance of the metric with the given name (usually the latest recorded value).- 指定者:
findOne
在接口中MetricReader
- 参数:
metricName
- the name of the metric to find- 返回:
- a metric value or null if there are none with that name
findAll
public Iterable<Metric<?>> findAll()
从接口复制的说明:MetricReader
Find all the metrics known to this reader.- 指定者:
findAll
在接口中MetricReader
- 返回:
- all instances of metrics known to this reader
count
public long count()
从接口复制的说明:MetricReader
The number of metrics known to this reader.- 指定者:
count
在接口中MetricReader
- 返回:
- the number of metrics