接口 MetricReader
- 所有已知子接口:
MetricRepository
- 所有已知实现类:
AggregateMetricReader
,BufferMetricReader
,CompositeMetricReader
,InMemoryMetricRepository
,MetricRegistryMetricReader
,MetricsEndpointMetricReader
,RedisMetricRepository
,SpringIntegrationMetricReader
public interface MetricReader
A simple reader interface used to interrogateMetric
s.
方法详细资料
findOne
Metric<?> findOne(String metricName)
Find an instance of the metric with the given name (usually the latest recorded value).- 参数:
metricName
- the name of the metric to find- 返回:
- a metric value or null if there are none with that name
findAll
Iterable<Metric<?>> findAll()
Find all the metrics known to this reader.- 返回:
- all instances of metrics known to this reader
count
long count()
The number of metrics known to this reader.- 返回:
- the number of metrics