类 MetricsEndpointMetricReader
- java.lang.Object
- org.springframework.boot.actuate.endpoint.MetricsEndpointMetricReader
- 所有已实现的接口:
MetricReader
public class MetricsEndpointMetricReader extends Object implements MetricReader
MetricReader
that pulls all current values out of theMetricsEndpoint
. No timestamp information is available, so there is no way to check if the values are recent, and they all come out with the default (current time).- 从以下版本开始:
- 1.3.0
构造器概要
构造器 构造器 说明 MetricsEndpointMetricReader(MetricsEndpoint endpoint)
构造器详细资料
MetricsEndpointMetricReader
public MetricsEndpointMetricReader(MetricsEndpoint endpoint)
方法详细资料
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